Avoiding error message about non-numeric comparison; reporting on tags that are not...
authorBen Ostrowsky <ben@esilibrary.com>
Thu, 5 May 2011 16:45:50 +0000 (16:45 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 16 Jul 2012 15:30:56 +0000 (11:30 -0400)
Equinox-Migration/lib/Equinox/Migration/MARCXMLSampler.pm

index d7aff09..57098a0 100644 (file)
@@ -117,7 +117,7 @@ sub parse_record {
 sub process_field {
     my ($field) = @_;
     my $tag = $field->{'att'}->{'tag'};
-    return unless ($tag and $tag > 9);
+    return unless ($tag and ($tag =~ /[^0-9]/ or $tag > 9));
 
     # increment raw tag count
     $dstore->{tcnt}++;