http://qs321.pair.com?node_id=835689


in reply to Re^2: Isn't /m for multiline regex?
in thread Isn't /m for multiline regex?

from perlfaq6

Here's code that finds everything between START and END in a paragraph:
undef $/; # read in whole file, not just one line or paragraph while ( <> ) { while ( /START(.*?)END/sgm ) { print "$1\n"; } }