well it is this line that is causing problem
system('/usr/bin/scp', "user\@$i:/tmp/zz.txt", "/tmp/zz_$i\.txt"); /tmp/zz_$i.txt becomes /tmp/zz_$i?.txt where $i is a hostname.
In reply to Re^2: scp command in perl introduces extra character while copying
by surajsam
in thread scp command in perl introduces extra character while copying
by surajsam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |