X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXUtil.pm;h=be6dfb4d308e2152e158000a9ddb41582bcc02df;hb=deb52e701a0db351d06eb6fe14872dc2fa7a51cb;hp=51272d743420eea029be9a8d0b9e04bc77e029a1;hpb=007511abd2f678130afcc778d60bad0447411b0b;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;