in reply to Re: Questions about Grepin thread Questions about Grep
use strict; open my $fh, "file.txt" or die "Error opening file.txt: $!"; print grep /pattern/, <$fh>; [download]