Help for this page

Select Code to Download


  1. or download this
    ...
    use MyModuule;
    MyModuule::DoTheCLIDance( @ARGV );
    exit( 0 );
    
  2. or download this
    sub MyModuule::DoTheCLIDance {
        my %args  = GetOptMyArgsIWant(\@_);
    ...
        my( $headers, $body ) = DoTheDance( $query );
        print $body; ## no headers on CLI :)
    }
    
  3. or download this
    sub MyModuule::DoTheCgiDanceOTHER {
       my $query = CGI->new;
    ...
       my( $headers, $body ) = PutOnSomePants( $query );
       print $body;
    }