Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -T
    use MyModule;
    MyModule->new->go;
    
  2. or download this
    package MyModule;
    use CGI qw();
    ...
    }
    
    1;
    
  3. or download this
    #!/usr/bin/perl -T
    use Test::More tests => 8;
    ...
    is $r->content, $post_data;
    
    kill 'KILL', $pid;
    
  4. or download this
    package TestServer;
    use HTTP::Server::Simple::CGI qw();
    ...
    }
    
    1;
    
  5. or download this
    diag $r->as_string;
    # HTTP/0.9 200 Assumed OK
    ...
    # Content-Type: text/html; charset=ISO-8859-1
    #
    # some post data