open(FOO, "zcat $foo |") || open(FOO, $foo) || die("ERROR: Unable to o +pen file $foo for read: $!");
In reply to Re: How to test if a file is gzipped or not
by Anonymous Monk
in thread How to test if a file is gzipped or not
by Special_K
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |