in reply to Re: Processing lines after a pattern in a while loop
in thread Processing lines after a pattern in a while loop

This is where I wish the magic while (<fh>) was a bit more inclusive, or a bit less special, or something.

Too bad this doesn't work, because it sure makes for a readable idiom:

<DATA> until /^#cardtype/; while (<DATA>) { ... }
The closest readable alternative that works seems to be:
1 until <DATA> =~ /^#cardtype/; while (<DATA>) { ... }

--
[ e d @ h a l l e y . c c ]