Help for this page

Select Code to Download


  1. or download this
    use Getopt::Std;
    
  2. or download this
    use strict;
    use warnings;
    
  3. or download this
    use List::Util 'shuffle';
    
  4. or download this
    getopts('r:n:v', \%opt) or usage();
    
  5. or download this
    sub usage {
      print STDERR "Usage: $0 [-n N] [-r] [-v] command arg1 arg2...
    ...
        -v: verbose mode
    ";
      exit 1;
    
  6. or download this
    sub USAGE () {
        my $name=basename $0;  # File::Basename's
    ...
    [actual usage here]
    .EOT
    }