X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUtil.pm;h=6cf35b2bd77e3a398d652ba7d3f2af98f8e77228;hb=6db883c129fb84bbf067861a1def1fd8120a32c8;hp=ed714fe82c11b0862ef8d7051b4349e1e66f81d6;hpb=fa9e414f691e4e9a80c80eb54cb7b1e971976b22;p=spider.git diff --git a/perl/DXUtil.pm b/perl/DXUtil.pm index ed714fe8..6cf35b2b 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