if ( @ARGV lt 2 || @ARGV gt 2 )
should be
if ( @ARGV < 2 || @ARGV > 2 )
lt and gt are for comparing strings.
< and > are for comparing numbers.
For example, 10 lt 2 is true.
Better yet, use
if ( @ARGV != 2 )
In reply to Re: IP Iterator
by ikegami
in thread IP Iterator
by camlet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |