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

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)