X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=perl%2FDXUtil.pm;h=b89d88ea9a89def800ffdfcba3ba39d1cc4e26aa;hb=766014807e2521cc60a219c6eda5b49d13ffc70f;hp=207d27711e002e017ee72bcd5dcd5fede0273a82;hpb=76027e074b381b0cdc76b3c23ac751802ee174fe;p=spider.git diff --git a/perl/DXUtil.pm b/perl/DXUtil.pm index 207d2771..b89d88ea 100644 --- a/perl/DXUtil.pm +++ b/perl/DXUtil.pm @@ -380,8 +380,8 @@ sub filecopy sub unpad { my $s = shift; - $s =~ s/\s+$//; - $s =~ s/^\s+//; + $s =~ s/^\s*//; + $s =~ s/\s*$//; return $s; }