Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: how to find a subroutine exists or not

by sen (Hermit)
on Apr 20, 2006 at 17:19 UTC ( #544654=note: print w/ replies, xml ) Need Help??


in reply to how to find a subroutine exists or not

Hi

Try this one.

print "Exists\n" if exists &subroutine; print "Defined\n" if defined &subroutine;

Thanks


Comment on Re: how to find a subroutine exists or not
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://544654]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-08-28 13:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (260 votes), past polls