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
In reply to Re: confused
by davorg
in thread @ARGV / Command Line Arguments
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |