in reply to Useless use of string eq
$cust = (split(/-/, $ARGV));
That may admit bogus customers that don't exist, or that the program cannot deal with. It may be wiser to spell out exactly what is legal.
(my $cust = $ARGV) =~ s/^-(SMC|SBM|FET|China)$/$1/
or die "garbage in second arg: <$ARGV>\n";
• another intruder with the mooring in the heart of the Perl
1. Keep it simple
2. Just remember to pull out 3 in the morning
3. A good puzzle will wake me up
Many. I like to torture myself
0. Socks just get in the way
Results (313 votes). Check out past polls.