Perl Shell - A Solution
die $usage if $h;
If
$h
has a true value, print out
$usage
and stop the program.
Recall:
Since Perl was invoked with the
-s
option, if
psh
is invoked with a
-h
switch, then
$h
has a true value.
$usage
is a scalar that holds the help message.