my $printing = 0; while( <DATA> ) { if( /indicator/ ) { $printing = !$printing; next; # presuming you don't want to print the indicator itself } print if $printing; } __DATA__ foo bar indicator baz quux fnord indicator flig? boink
In reply to Re: Stupid parsing question
by Fletch
in thread Stupid parsing question
by dew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |