go ahead... be a heretic | |
PerlMonks |
Re: Re: test for subroutine existenceby twerq (Deacon) |
on Aug 12, 2002 at 14:20 UTC ( [id://189498]=note: print w/replies, xml ) | Need Help?? |
Sorry, I probably wasn't clear enough in my original post (but that's why I added the code)... I need to be able to test for a subroutine's existence, a subroutine who'se name is only available to me in a scalar -- so I can't very well use defined &my_sub (or can I?) fuzzyping's right, eval does work pretty well, except that I end up actually executing the subroutine itself just to see if it's there -- I'd prefer not to actually run it at test time... --twerq
In Section
Seekers of Perl Wisdom
|
|