Carefully look at your output... the file path is being specified twice... tar: /home/user/results//home/user/results/results_back.tar.gz. Try this:
for (@tar){ print `tar -tvf $_`; }
ps. I'd recommend you look at my Archive::Extract example here, to avoid having to shell out.
In reply to Re^2: foreach loop to untar multiple files
by stevieb
in thread foreach loop to untar multiple files
by fasoli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |