I was ale to accomplish what I need to do by using the following. Thanks for your help.
my $id = $ARGV[2]; if (not defined $id) { print "$id is not defined"; } else { print "$id is defined"; }
In reply to Re^2: Make command line argument optional
by TonyNY
in thread Make command line argument optional
by TonyNY
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |