Avoid the following error:
UNIVERSAL->import is deprecated and will be removed in a future perl at
Open-ILS/src/perlmods/lib/OpenILS/Utils/Normalize.pm line 6
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
use warnings;
use Unicode::Normalize;
use Encode;
-use UNIVERSAL qw/isa/;
+use UNIVERSAL;
use MARC::Record;
use MARC::File::XML ( BinaryEncoding => 'UTF-8' );
use OpenILS::Application::AppUtils;
# Assumes input is already in UTF-8.
sub clean_marc {
my $input = shift;
- my $xml = decode_utf8((isa $input, 'MARC::Record') ? $input->as_xml_record() : $input);
+ my $xml = decode_utf8((UNIVERSAL::isa($input, 'MARC::Record')) ? $input->as_xml_record() : $input);
$xml =~ s/\n//sog;
$xml =~ s/^<\?xml.+\?\s*>//go;
$xml =~ s/>\s+</></go;