X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUtil.pm;h=0942c69a0c0ed5aeeb66c33f9250744d9cb2adda;hb=500bf82033a0b678d4c1a80a9bc417ae6ea53e57;hp=ed714fe82c11b0862ef8d7051b4349e1e66f81d6;hpb=fa9e414f691e4e9a80c80eb54cb7b1e971976b22;p=spider.git diff --git a/perl/DXUtil.pm b/perl/DXUtil.pm index ed714fe8..0942c69a 100644 --- a/perl/DXUtil.pm +++ b/perl/DXUtil.pm @@ -165,7 +165,7 @@ sub phex sub parray { my $ref = shift; - return join(', ', @{$ref}); + return ref $ref ? join(', ', @{$ref}) : $ref; } # take the arg as an array reference and print as a list of pairs @@ -346,7 +346,7 @@ sub is_callsign # check that a PC protocol field is valid text sub is_pctext { - return undef if $_[0] =~ /[\x00-\x08\x0a-\x1f\xf0-\xff]/; + return undef if $_[0] =~ /[\x00-\x08\x0a-\x1f\x80-\x9f]/; return $_[0]; }