You should not be using qw in the system call
Or, you should be using qw() but you need to fully specify the path to perl. That way you don't have to worry about $file having spaces in it.
In reply to Re^2: Passing user input to a shell command
by adrianh
in thread Passing user input to a shell command
by james734
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |