CGI's redirect method is a shortcut which outputs a full set of HTTP headers including a Location: line. If you want to display some HTML while having a redirect header, you can do something like the following:
use strict; use CGI; my $q = CGI->new; print $q->header( -type => 'text/html', -location => 'http://somewhere.com/' ); print "<h1>Here's some HTML.</h1>";
In reply to Re: redirect in more than standalone mode
by friedo
in thread redirect in more than standalone mode
by gmacfadden
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |