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


in reply to Re: Could some explain =~ vs !~ to me?
in thread Could some explain =~ vs !~ to me?

You must be doing something different than the OP if you get WooWoo. There are no /g modifiers on those substitutions and the string looks like HooHoo before he does the final substitution.