X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=9e9a708e367bd66baf4c6e0a87a6b9d46264d6a5;hb=4132ec72fbe241d407e0af7ad00cef550d5b806e;hp=60c7f1086d228ccc03c68f5364fe9ee71134803d;hpb=dbf7523a9b228dbdf1d03109afde351b8b194fab;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 60c7f108..9e9a708e 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -470,7 +470,7 @@ sub run_cmd return (); } } - return (@ans); + return map {s/([^\s])\s+$/$1/; $_} @ans; } #