in reply to IP Iterator

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 )

Replies are listed 'Best First'.
Re^2: IP Iterator
by camlet (Novice) on Apr 17, 2008 at 23:29 UTC
    change made.

    if ( @ARGV != 2 ). nice catch thx.