in reply to Compile-time checking for undef subroutines?
Is there a way I can check the validity of all the subroutines in my perl programUnfortunately no. Because subroutines can be called and created dynamically there's no way of telling at compile time whether every subroutine has been defined (which is potentially any subroutine). You could possibly do some trickery with the B:: modules to get some way towards your goal (i.e if you assume all subroutines and subroutines calls are static). And if you're dealing with methods then it'd be difficult, if not impossible, to determine whether every method exists due, in no small part, to inheritance
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Compile-time checking for undef subroutines?
by Abigail-II (Bishop) on May 05, 2003 at 23:48 UTC | |
by Aristotle (Chancellor) on May 06, 2003 at 07:24 UTC |