Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Think about Loose Coupling
 
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 musing on the Monastery: (15)
As of 2014-04-16 16:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (432 votes), past polls