in reply to Re: quick "open->close" filein thread quick "open->close" file
use IO::File; my $line = -f $file and grep { ... } IO::File->new($file)->getlines;