my $id = $ARGV[2]; chomp $id;
I don't understand how you intend to get something into $ARGV[2] and thence into $id that can then be chomp-ed off of it. Will you be playing perverse games with the $/ special variable? What's really going on here?
Give a man a fish: <%-{-{-{-<
In reply to Re: Make command line argument optional
by AnomalousMonk
in thread Make command line argument optional
by TonyNY
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |