Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
We don't bite newbies here... much
 
PerlMonks  

Re: CGI example

by meraxes (Friar)
on Nov 26, 2007 at 17:55 UTC ( #653046=note: print w/ replies, xml ) Need Help??


in reply to CGI example

You're mixing your metaphores, so to speak. :)

The redirect function won't work at the command line. I'm surprised you're not actually seing the headers for this in the output.

The only output you are getting is the print hr(),end_html(); because redirect doesn't "load" the page for you, it outputs headers that do a redirect and it can't do a redirect at the command line.

You cannot both redirect and output HTML at the same time.

I'd recommend reading a bit more about CGI and perhaps looking into CGI::Application for writing an application.

--
meraxes


Comment on Re: CGI example
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2014-04-23 23:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (557 votes), past polls