This comes to mind (not tested):
#!perl use strict; use warnings; use PerlIO::gzip; open FOO, "<:gzip", "file.gz" or die $!; while (<FOO>) { next unless /search term/; my @f = split '::'; push @productArray, $f[1]; }
In reply to Re: Best way to search large files in Perl
by RonW
in thread Best way to search large files in Perl
by ccmadd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |