X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=9e9a708e367bd66baf4c6e0a87a6b9d46264d6a5;hb=171f9837d8bb99d05c2b3bb87066d25d448eabd3;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; } #