This is not even valid Perl code, as it does not compile.
Please take care to test your code and to reduce it to the actual problem. Maybe you want to review system? It shows how to use that function. Also, you may want to learn about quoting, and the difference between strings (what system takes as arguments) and bare, unquoted words in Perl (what perl takes as commands in a program.
In reply to Re^3: How to pass command line arguments with file names containing spaces
by Corion
in thread How to pass command line arguments with file names containing spaces
by MVRS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |