I strongly recommend that you use strictures: use strict; use warnings;. They would have told you that the assignment in the conditional expression was likely a bad thing to do. You probably actually want something like:
if ($ARGV[0] eq 'h') {
Note the use of eq rather than == because you want a string compare rather than a numeric compare.
However a much better way to manage all the command line processing is to use Getopt::Long.
In reply to Re: Help display when executing the script
by GrandFather
in thread Help display when executing the script
by rsriram
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |