move the handling of unprintable characters out of IntMsg
[spider.git] / perl / DXUtil.pm
index ed714fe82c11b0862ef8d7051b4349e1e66f81d6..6cf35b2bd77e3a398d652ba7d3f2af98f8e77228 100644 (file)
@@ -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