in reply to system call and newline interpretattion.
This still requires the chomp, but might make the code more legible or easier to debug and I believe (but not sure) that in some cases it helps with escaping issues.chomp; my @args = ("$user\@$ip:$source/$_", "staging/$_"); my $command = "scp"; system $command, @args;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: system call and newline interpretattion.
by ikegami (Patriarch) on May 24, 2005 at 15:04 UTC |