in reply to Re: Need to search for a string in a file
in thread Need to search for a string in a file
Will my @list = grep /re/, <FH> necessarily pull the entire file into memory? (I don't know and would like to know for sure!)
It sure seems to!
open my $fh, "<", "/dev/urandom" or die "$!"; my @a = grep /huh, whaddayamean/, <$fh>;
In Section
Seekers of Perl Wisdom