Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Getopt::Std;
    ...
    getopt('ha');
    print "help=$opt_h\n" if (defined $opt_h);
    print "all=$opt_a\n"  if (defined $opt_a);
    
  2. or download this
    perl -w test.pl -h -a
    help=-a
    
  3. or download this
    perl -w test.pl -h -a
    help=1
    all=1