in reply to detecting $& usage

You can give AmpKiller.pm to disallow $&, etc. a try. I'd like to know how it works for you.