rapide has asked for the wisdom of the Perl Monks concerning the following question:
require('perlmonk.pm'); if(defined 'perlmonk'->funnyfunction()) { print "YES it DOES exist!"; } else { print "NO, it does NOT exist!"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to check if a function exists within a package?
by ikegami (Patriarch) on Sep 08, 2008 at 01:06 UTC | |
by jettero (Monsignor) on Sep 08, 2008 at 02:01 UTC | |
by ikegami (Patriarch) on Sep 08, 2008 at 02:11 UTC | |
by rapide (Beadle) on Sep 08, 2008 at 01:38 UTC | |
|
Re: How to check if a function exists within a package?
by GrandFather (Saint) on Sep 08, 2008 at 01:12 UTC | |
by ikegami (Patriarch) on Sep 08, 2008 at 01:29 UTC | |
|
Re: How to check if a function exists within a package?
by codeacrobat (Chaplain) on Sep 08, 2008 at 18:55 UTC | |
by Anonymous Monk on Jan 22, 2009 at 18:16 UTC |