I see no obvious reason why it shouldn't work. You may try using the multiple arguments version of system, though. From perldoc -f system:
If there is only one scalar argument, the argument is checked for shell metacharacters, and if there are any, the entire argument is passed to the system's command shell for parsing
But while we're here I feel like repeating the (now) daily question: why don't you make mycode.pl into a real module?
In reply to Re: Problem passing a string in system function
by blazar
in thread Problem passing a string in system function
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |