laziness, impatience, and hubris | |
PerlMonks |
Re: foreach loop to untar multiple filesby Paladin (Vicar) |
on Nov 13, 2015 at 16:25 UTC ( [id://1147670]=note: print w/replies, xml ) | Need Help?? |
system doesn't return the output of the command run, it returns the exit code of what's run, in your case 0 hence the 0 in your output "tar: 0: Cannot open: No such file or directory".
Take a look at the glob() perl command to get the listing of files in a directory.
In Section
Seekers of Perl Wisdom
|
|