Beefy Boxes and Bandwidth Generously Provided by pair Networks
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 drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2015-07-29 21:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls