Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: CGI::Application design strategy

by rchiav (Deacon)
on Mar 02, 2004 at 15:13 UTC ( [id://333270]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI::Application design strategy
in thread CGI::Application design strategy

Since your login_submit sub has to return what's to be displayed to the browser, don't you have to do
if(badlogin()){ return $self->login(); }
?

Replies are listed 'Best First'.
Re: Re: Re: CGI::Application design strategy
by jdtoronto (Prior) on Mar 02, 2004 at 15:39 UTC
    No, not necessarilly, if $self->login returns to a place where at some later point the output is returned to CGI::A then the return is not strictly necessary.

    Believe me, I know, I got bitten by that one yesterday.

    jdtoronto

Re: Re: Re: CGI::Application design strategy
by zby (Vicar) on Mar 03, 2004 at 12:50 UTC
    Yeah - you are right. That's how I did that. I can't comment on what jdtoronto wrote.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2025-01-16 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which URL do you most often use to access this site?












    Results (53 votes). Check out past polls.