in reply to Problem with a multi-line regexp
Your one-liner is reading the file one line at a time. See perlrun for changing $/ from a command line option. Paragraph mode (-000)looks like a good bet.
After Compline,Zaxo