in reply to Mnemonic Devices for Perl Programming
The /m modifier allows ^ and $ to Match even in the Middle of a string.
How this help. It certainly has helped me.