Eric Pement wrote:
You can also match on line number: if ( $. == 100 ... $. == 150 ) { ... }
That is the verbose way to write: if ( 100 .. 150 ) { ... }
or a combination: if ( $. == 200 ... /^your reg[ex]/ ) { ... }
If you are going to be verbose then: if ( $. == 200 ... $_ =~ /^your reg[ex]/ ) { ... } Or just: if ( 200 ... /^your reg[ex]/ ) { ... } John -- Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. -- Albert Einstein -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/