• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Redirect with CGI

 
victor kamat
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the CGI program to redirect but it doesn't work.
Can somebody help me. Thanks

#!/usr/local/bin/perl -T

use strict;
use CGI ':standard';

my $cgi = new CGI;

print header;
print start_html('Hello World');
$cgi.redirect(" http://www.yahoo.com");
print end_html();

exit;
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic