Help for this page

Select Code to Download


  1. or download this
    package main;
    use CGI qw(header);
    ...
    # loads plugins
    
    print header( $header_ref );
    
  2. or download this
    $header_ref = {
        'content-length'  => 1234,
    ...
        '-Content-Length' => 1234,
        '-Content_Length' => 1234,
    };
    
  3. or download this
    # plugins/foo
    package foo;
    $main::header_ref->{'-status'} = '304 Not Modified';
    
  4. or download this
    # plugins/bar
    package bar;
    $main::header_ref->{'Status'} = '404 Not Found';
    
  5. or download this
    # plugins/foo
    package foo;
    ...
    
        return $key;
    }