Help for this page

Select Code to Download


  1. or download this
    # This line loads the CGI.pm module.
    use CGI;
    ...
    print $im_better->a({href=>"http://www.google.com"}, 'Google');
    
    $im_better->end_html();
    
  2. or download this
    print "Content-type: text/html\n\n"; # The content header
    ..... # Put stuff you need here
    print '<a href="http://www.google.com>Google</a>';
    
  3. or download this
    use CGI;
    my $im_better = new CGI; 
    # Please note that I didn't print a header this time
    print $im_better->redirect("http://www.google.com");
    
  4. or download this
    # I also didn't print a header this time either
    print "location:http://www.google.com\n\n";