Putting that in front of your main loop means your while (<ARGV>) loop can process gzip files transparently.foreach (@ARGV) { if ($_=~/\.z$/) { $_="gunzip -c $_ |"; } }
In reply to Re: archives etc
by matija
in thread archives etc
by CassJ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |