in reply to foreach loop to untar multiple files
Another approach is to use glob:
my $results = "~/results"; # results coming in. for (glob "$results/*.tar.gz") { system "tar -tvf $_"; } [download]