in reply to @ARGV / Command Line Arguments
Your problem is the line
while (<>)
This is wrong for two reasons.
You should use
while (<INPUT>)
instead.
Look for the section on "I/O Operators" in perldoc perlop.
--"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
|
|---|