Looks like like $_ ends with a newline. Try adding chomp before $command = ....
Unrelated, try using <code> tags around your code and output when you post.
In reply to Re: system call and newline interpretattion.
by ikegami
in thread system call and newline interpretattion.
by jaimeGonz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |