Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^5: CHECKING IF HEADER DEFINED

by trwww (Priest)
on Aug 06, 2010 at 07:26 UTC ( [id://853335]=note: print w/replies, xml ) Need Help??


in reply to Re^4: CHECKING IF HEADER DEFINED
in thread CHECKING IF HEADER DEFINED

The $self->run_modes stuff takes care of the HTTP headers for you, which is the exact problem the OP has. So its much more useful than a large conditional where you claim it is identical.

If you don't like configuring the runmodes in the setup method, you can just use CGI::Application::Plugin::AutoRunmode.

Also, once you go with CGI::Application, you immediately have all of the plugins that others have shared on CPAN so you don't have to keep reinventing wheels that have already been done better by others.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found