http://www.perlmonks.org?node_id=398155


in reply to Apply A Set Of Regexes To A String

why not use $_?


for ($html) {
   s/foo/bar/;
   s/baz/quux/;
   s/monkey/pants/;
}