in reply to RE: RE: Using code posted on PerlMonks
in thread Using code posted on PerlMonks

in response to your update, wouldn't you actually get
&
in ASCII/escaped HTML if someone named a subroutine amp?

To check for the above use
/\&(amp;)($1)/
and you would catch it. Just a quick thought. :)