Think about Loose Coupling | |
PerlMonks |
Re: foreach loop to untar multiple filesby toolic (Bishop) |
on Nov 13, 2015 at 16:26 UTC ( [id://1147671]=note: print w/replies, xml ) | Need Help?? |
The problem is that the output of system is the exit value of the ls command, not the output of the ls command. You could use qx to capture the ls command output.
Another approach is to use glob:
In Section
Seekers of Perl Wisdom
|
|