in reply to Re: AmpKiller.pm to disallow $&, etc.
in thread AmpKiller.pm to disallow $&, etc.

No, penalties do not occur, as you can verify with Devel::SawAmpersand. Because I set a *& glob up, the code in gv_fetchpv to set up a new variable isn't triggered. The only purpose of croaking is to detect problems in eval'd code as a result of disabling $&.
  • Comment on Re: Re: AmpKiller.pm to disallow $&, etc.