in reply to Re: Possible to catch undefined sub at "compile" time?
in thread Possible to catch undefined sub at "compile" time?

Cheater!
Code in BEGIN blocks gets compiled and run, so the "Undefined ..." message is a really a runtime error :-)

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
  • Comment on Re^2: Possible to catch undefined sub at "compile" time?

Replies are listed 'Best First'.
Re^3: Possible to catch undefined sub at "compile" time?
by syphilis (Archbishop) on Oct 10, 2007 at 13:16 UTC
    And the print "After compilation, this message appears\n"; that never gets executed .... that must be post-runtime code :-)

    You're right, of course - the <flippancy> tags could just as well (or better) be replaced with <cheat> tags.

    Cheers,
    Rob