Another approach is to use glob:
my $results = "~/results"; # results coming in. for (glob "$results/*.tar.gz") { system "tar -tvf $_"; }
In reply to Re: foreach loop to untar multiple files
by toolic
in thread foreach loop to untar multiple files
by fasoli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |