X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=1dd868c0aa79600c371307b1224513decb25e492;hb=c480ac94da7dbd5762fcd15aa556c874d223e14e;hp=5d16f93d58594e0a467cf6933f662098e8ca5471;hpb=172430f1a1a4b0ff593f5750e1e93c6c62a3ec76;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index 5d16f93d..1dd868c0 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -1323,8 +1323,8 @@ sub spawn_cmd sub { my $subpro = shift; if (isdbg('progress')) { - my $s = "line: $line"; - $s .= ", args: " . join(', ', @$args) if $args && @$args; + my $s = qq{line: "$line"}; + $s .= ", args: " . join(', ', map { defined $_ ? qq{'$_'} : q{'undef'} } @$args) if $args && @$args; dbg($s); } eval { @out = $cmdref->(@$args); };