Your code
if (@ARGV="h") { ... };
is not checking whether @ARGV contains the string "h", it assigns @ARGV = "h";. You should look at Getopt::Long and The Dynamic Duo --or-- Holy Getopt::Long, Pod::UsageMan! how to best implement command line parsing.
In reply to Re: Help display when executing the script
by Corion
in thread Help display when executing the script
by rsriram
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |