Help for this page

Select Code to Download


  1. or download this
    use CGI qw/:standard/; # this is FO
    print header,
          start_html('some title'),
          ...
    
  2. or download this
    use CGI; # this is OO
    my $q = CGI->new;
    print $q->header,
          $q->start_html('some title'),
          ...
    
  3. or download this
    C:\>perl -MCGI -e "print header();"
    Undefined subroutine &main::header called at -e line 1.
    
  4. or download this
    C:\>perl -MCGI -e "print CGI::header();"
    Content-Type: text/html; charset=ISO-8859-1
    
  5. or download this
    sub header {
        my($self,@p) = self_or_default(@_);
    
  6. or download this
    my $q = CGI->new({});