X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUtil.pm;h=be6dfb4d308e2152e158000a9ddb41582bcc02df;hb=c57b362f28907e1d1bfc9425cafca758f2c9f551;hp=51272d743420eea029be9a8d0b9e04bc77e029a1;hpb=710e02b70cb2530802812577229cd62a50da8090;p=spider.git diff --git a/perl/DXUtil.pm b/perl/DXUtil.pm index 51272d74..be6dfb4d 100644 --- a/perl/DXUtil.pm +++ b/perl/DXUtil.pm @@ -222,7 +222,7 @@ sub phash my $ref = shift; my $out; - while (my $k = sort keys %$ref) { + foreach my $k (sort keys %$ref) { $out .= "${k}=>$ref->{$k}, "; } $out =~ s/, $// if $out;