> Hi, > > I have a script that command options are taken and would like > to know how print out the options when the options are > missing from the command line. Or how to do a -h to print out > the options. >
There are module sto help you process switches and what not. For really simple stuff I do: if($ARGV[0] eq '-h') { print "Here is how to use this script...."; } elsif(!defined $ARGV[1]) { print "You must specify the Foo for Monkey, try -h for help..."; } Something like that anyway. HTH DMuey > Thanks, > Thomas Browner > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>