in reply to Regular expression...

You probably want to use the flip-flop operator:

while ( <file_handle> ) { if ( /^=begin/ .. /^=end/ ) { read each line between, and including, "-begin" and "=end" } }

Replies are listed 'Best First'.
Re^2: Regular expression...
by walkingthecow (Friar) on Oct 08, 2010 at 19:52 UTC
    Thank you for introducing me to the flip-flop operator!