Help for this page

Select Code to Download


  1. or download this
    unless ( GetOptions (
                            "example=s" => \$par_example, # string needed
    ...
                            )) { my_show_help(); die "Error in command lin
    +e arguments: $!"}
    
    if (defined $par_help){my_show_help();exit;}
    
  2. or download this
    my ($stdout, $stderr, $exit) = capture {
                    system( $cmd, @cmdargs );
            };