in reply to stop me from embarrassing myself

When calling getopts(), its often useful to die with a usage string on failure. Something like:
(my $cmd = $0) =~ s#.*/##; my $usage_str = <<EOT Usage: $cmd [-hulf] [-f file] 'Explanation of above command and options' EOT getops('hulf:', \%opts) or die $usage_str;
Sorry I don't have time to be more critical at the moment :)

Replies are listed 'Best First'.
Re: Re: stop me from embarrassing myself
by blueflashlight (Pilgrim) on Feb 27, 2001 at 23:44 UTC
    thank you! I've incorprated your suggestion. -s-