in reply to Simple question about CGI/Perl and html redirection

or you can do this:

print "Location: $filename\n\n";

just be sure that you haven't printed an HTML header yet.


Update: arturo was faster, and his post contains more info, please disregard


He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.

Replies are listed 'Best First'.
Re: Re: Simple question about CGI/Perl and html redirection
by arturo (Vicar) on Mar 27, 2001 at 21:24 UTC

    No, don't. I forgot the space (d'oh) in the Location type solution. =)

    Philosophy can be made out of anything. Or less -- Jerry A. Fodor