chiark / gitweb /
disable statement unlikely for die after exec, sigh
[ypp-sc-tools.db-live.git] / yarrg / Commods.pm
index 48caf79e9ba3f5ca1f0d2f158c4d8f36d18f242d..fcd3eacfff221733c1038754c66b80984be09ea1 100644 (file)
@@ -30,6 +30,8 @@ use LWP::UserAgent;
 use strict;
 use warnings;
 
+no warnings qw(exec);
+
 BEGIN {
     use Exporter ();
     our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
@@ -422,7 +424,7 @@ sub check_tsv_line ($$) {
     
     chomp($l) or &$bad_data('missing end-of-line');
 
-    $l !~ m/\P{IsPrint}/ or &$bad_data('nonprinting char(s) '.sprintf "%#x", ord $&);
+    $l =~ m/[\t [:graph:]]/ or &$bad_data('nonprinting char(s) '.sprintf "%#x", ord $&);
     my @v= split /\t/, $l, -1;
     @v==6 or &$bad_data('wrong number of fields');
     $v[1] =~ s/^\s+//; $v[1] =~ s/\s+$//; # ooo don't check :-(