Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: IP Iterator

by ikegami (Patriarch)
on Apr 17, 2008 at 22:36 UTC ( [id://681332]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://681332]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2024-04-18 14:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found