in reply to Testing for existence of subroutine ref?
if (ref $runmodes{$action} eq "CODE") { # it's a coderef, so run it... ... } else { # it's something else {grin} ... }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Testing for existence of subroutine ref?
by feanor_269 (Beadle) on Feb 19, 2003 at 03:10 UTC | |
by djantzen (Priest) on Feb 19, 2003 at 03:43 UTC | |
|
Re: •Re: Testing for existence of subroutine ref?
by ihb (Deacon) on Feb 20, 2003 at 01:25 UTC |