roho has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use vars qw($opt_h); use Getopt::Std; getopts("hiy:"); if(defined $opt_h) { print "\n"; print " Usage: sample.pl [options]\n"; print "Options:\n"; print " -h display help.\n"; exit; }
"Its not how hard you work, its how much you get done."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Command Line Options - Perl on Win32
by Corion (Patriarch) on Nov 25, 2006 at 18:23 UTC | |
by roho (Bishop) on Nov 25, 2006 at 18:40 UTC |