in reply to Make command line argument optional
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: <%-{-{-{-<
|
|---|