Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Reading a file from any arbitrary place in the file.by davidrw (Prior) |
on Nov 21, 2005 at 19:36 UTC ( [id://510540]=note: print w/replies, xml ) | Need Help?? |
Basic approach is to read through the while file, and set the flag once you hit your marker, and print if the flag is set.
Another approach, if the file is small enough, is to slurp into memory and split it, using your marker as the delimiter:
In Section
Seekers of Perl Wisdom
|
|