|
|
| "be consistent" | |
| PerlMonks |
Re: Split files based on regexpby Anonymous Monk |
| on May 17, 2012 at 11:12 UTC ( #971041=note: print w/ replies, xml ) | Need Help?? |
|
If it is a big file, read it one line at a time instead of slurping into an array. Look up Finite-State Machine (FSM) on Google. Your app toggles between SEARCHING_FOR_ENTERCOMBAT and FIND_THE_BOSS states.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||