Your whole reason to use the multiple argument version of system was to avoid having the your arguments treated as anything but literal text.
And now you're asking why it doesn't work when the code does exactly that.
If you want redirection, you'll either have to build a shell command or do it yourself (IPC::Run, IPC::Run3, IPC::Open2, IPC::Open3, etc.)
In reply to Re^3: Passing commands to subroutines
by ikegami
in thread Passing commands to subroutines
by citromatik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |