|
|
| Think about Loose Coupling | |
| PerlMonks |
Re^3: A way to avoid repeated conditional loopsby SuicideJunkie (Priest) |
| on Aug 24, 2011 at 13:57 UTC ( #922117=note: print w/ replies, xml ) | Need Help?? |
|
Are you assuming that 'alpha' is also always the first line in the file? Also, the posted flipflop doesn't behave the same as the OP A simpler way to just use a flag and short circuit the regex work:
Given a test file of: The results I got are:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||