in reply to Possible to catch undefined sub at "compile" time?
</flippancy>BEGIN { use warnings; use strict; use 5.008; go(); sub monk {} sub go { mink(123); } }; print "After compilation, this message appears\n"; __END__ Outputs: Undefined subroutine &main::mink called at try.pl line 9. BEGIN failed--compilation aborted at try.pl line 11.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Possible to catch undefined sub at "compile" time?
by shmem (Chancellor) on Oct 10, 2007 at 13:01 UTC | |
by syphilis (Archbishop) on Oct 10, 2007 at 13:16 UTC |