in reply to Detecting undefined subroutines at compile time
As far as I can tell, Perl cannot detect undefined subroutines at compile time.Update: Corion /msg'd me to inform me that the following is a runtime error. I created an invalid test. A Super Search where title contains all of "undef", "sub", "comp" reveals these related threads:
It seems like Perl can detect undefined subroutines at compile time:
Can you show an example of the problem you are having?use warnings; use strict; foo(); __END__ Undefined subroutine &main::foo called
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Detecting undefined subroutines at compile time
by LanX (Saint) on May 02, 2011 at 17:43 UTC | |
|
Re^2: Detecting undefined subroutines at compile time
by wind (Priest) on May 02, 2011 at 17:45 UTC | |
by toolic (Bishop) on May 02, 2011 at 17:52 UTC | |
|
Re^2: Detecting undefined subroutines at compile time
by tchrist (Pilgrim) on May 02, 2011 at 23:18 UTC | |
by LanX (Saint) on May 03, 2011 at 07:41 UTC |