in reply to Processing slurped file.
Why not just do that? In fact, you could do something like:my @records = <BIGFILE>;
Voila! Just the string you want in @records, all postpended with \n. :)my $searchstring = 'LONDON'; my @records = grep /$searchstring/, <BIGFILE>;
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
|---|