in reply to Re^2: cgi code that opens a website
in thread cgi code that opens a website

And just for the sake of completeness, if that's *all* you're doing these would be fine too.

use CGI; print CGI->new->redirect('http://www.google.com'); # or use CGI; print CGI::redirect('http://www.google.com'); # or (what I'd probably use) use CGI "redirect"; print redirect('http://www.google.com');

Replies are listed 'Best First'.
Re^4: cgi code that opens a website
by Anonymous Monk on Feb 22, 2011 at 15:35 UTC
    print CGI->redirect(...

      I'll be damned. I didn't know CGI would do that. Thanks.

      perl -MCGI -e 'print CGI->redirect("http://woowoo")' Status: 302 Found Location: http://woowoo