Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Test::More tests => 2;
    ...
    
    require 'runWebTest.pl';
    runWebTest(\&test, 'sampleHandler.pl');
    
  2. or download this
    sub handler {
        my ($r, $c) = @_;
    ...
    }
    
    1;
    
  3. or download this
    use strict;
    use Config;
    ...
    }
    
    1;
    
  4. or download this
    use strict;
    
    ...
        $c->close;        
        $c = undef;  # close connection
    }