in reply to cgi code that opens a website

#!/usr/bin/perl use CGI; use strict; my $q = CGI->new; print $q->redirect('http://www.google.com'); 1;

Replies are listed 'Best First'.
Re^2: cgi code that opens a website
by normann (Initiate) on Feb 22, 2011 at 14:55 UTC
    Hey wind - thanks your code worked perfectly. Much appreciated - normann

      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');
        print CGI->redirect(...