Another way, with the scalar range operator,
Scalar range, once true, stays true until its right argument goes true.while (<$fh>) { next unless /^internal name/..0 and /^need this/; print "Got one in line ${.}\n"; }
Update: Fixed thinko on when the op switches off.
After Compline,
Zaxo
In reply to Re: seek and process from there on
by Zaxo
in thread seek and process from there on
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |