Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 exploiting the Monastery: (7)
As of 2014-10-22 00:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (112 votes), past polls