On Thu, 11 Sep 2003 at 14:13, drieux opined:
[snip]
d: sub should { defined($REQ_PARAMS->{$_[0]}); }
d: ....
d: sub doDaemon {
d: ....
d: }
d: sub kickDaemon { $me=shift; $me->doDaemon(@_); }
d: # the synonym trick...
d:
d:Which still gives me a HASH to manage, plus the actual Sub.
true, but you can use the hash for more than just a way to determine if a
called method exists. for an example, take a look at my form checker
tutorial:
http://www.peacecomputers.com/form_checker/
you'll see the %REQ_PARAMS hash lists each parameter it expects to receive
for every action, and also provides some basic criteria that each
parameter must pass to be considered acceptable.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]