in reply to Re: Detecting undefined subroutines at compile time
in thread Detecting undefined subroutines at compile time
In absence of AUTOLOAD, you don't even need to eval the calls. You can just use defined &func to check whether a subroutine was defined. This will supposedly even see through forward declarations of
sub foo;
You still need to run the BEGIN blocks of all use statements at least.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Detecting undefined subroutines at compile time (B::Xref)
by LanX (Saint) on May 02, 2011 at 18:15 UTC |