Maybe read up on what perlop says about qw, or just print out @cmd before running it.
Also try:
perl -le "print qq([$_]\n) for qw($foo $bar $baz);"
Alternatively, try taking away the loop and just using the first entry from @files.
In reply to Re: system commands aren't working as a loop.
by Corion
in thread system commands aren't working as a loop.
by smanicka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |