use strict; use Getopt::Std; my $file; usage() unless ($ARGV[0]); my %opts; getopts ('h?',\%opts); usage() if (exists($opts{h})); usage() if (exists($opts{'?'}));
This is a sweet module, use it.
TGI says moo
In reply to Re: use strict and -s
by TGI
in thread use strict and -s
by outcast
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |