Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: URL Redirect (header already there)

by Fletch (Chancellor)
on May 26, 2011 at 19:22 UTC ( #906885=note: print w/replies, xml ) Need Help??

in reply to URL Redirect (header already there)

You answered your own question if you just think about it: printing the redirect after the header doesn't work, so you need to determine what you want to do first then print the corresponding response (normal headers or a redirect). You also might want to take a look at something like CGI::Application which provides a more structured approach that aides in separating presentation and logic.

The cake is a lie.
The cake is a lie.
The cake is a lie.

  • Comment on Re: URL Redirect (header already there)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2016-10-22 08:51 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (294 votes). Check out past polls.