Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
              $cgi->p( 'Hello, world!' ), "\n",
              $cgi->end_html();
    }
    
  2. or download this
    ######################################################################
    sub print_document_header {
    ...
        my $cgi = shift @_; 
        print $cgi->header( -type => 'text/html' ), "\n";
    }