Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Why CGI::Application?

by derby (Abbot)
on Jan 13, 2004 at 14:47 UTC ( #320962=note: print w/ replies, xml ) Need Help??


in reply to Re: Why CGI::Application?
in thread Why CGI::Application?

If I'm following your question correctly, the payoff of the run_modes method is so you can have multiple mappings of modes to methods. It's odd, but not unheard of, to have two differently named modes invoke the same method (think AUTOLOAD).

-derby


Comment on Re: Re: Why CGI::Application?
Re: Re: Re: Why CGI::Application?
by zby (Vicar) on Jan 13, 2004 at 14:56 UTC
    Ah - I'd rather do:
    sub mode1{ my $self = shift; return $self->mode2(); }
    Is it so common place that the shorcut justifies the overhead of the additional run mode hash?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://320962]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2014-07-22 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (109 votes), past polls