in reply to Re^2: foreach loop to untar multiple files
in thread foreach loop to untar multiple files
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
|
|---|