for (@tar){ print `tar -tvf $_`; }
Quite dangerous. Imaginge a file named "foo ; rm -rf * ; bar.tar.gz", injected into @tar by ls or glob. (And yes, that's a legal filename.)
Alexander
In reply to Re^3: foreach loop to untar multiple files
by afoken
in thread foreach loop to untar multiple files
by fasoli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |