in reply to Re: IP Iterator
in thread IP Iterator
camlet@cam-lin-s04 tmp# ./test.pl
Can't locate Net/IP.pm in @INC (@INC contains:
[camlet@cam-lin-s04 tmp]# cat test.pl #!/usr/bin/perl use Net::Ping; use Net::IP; $|=1; my( $from, $to ) = @ARGV; my $p = Net::Ping->new('icmp',2); for ( my $ip = Net::IP->new( "$from - $to" ) or die "error creating Net::IP object: ".Net::IP::Error(); $ip; $ip++ ) { print "\n checking ip: ", $ip->ip, " "; print "ping success " if $p->ping($ip->ip); } $p->close;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: IP Iterator
by jwkrahn (Abbot) on Apr 17, 2008 at 21:32 UTC | |
by ikegami (Patriarch) on Apr 17, 2008 at 22:29 UTC | |
by camlet (Novice) on Apr 18, 2008 at 00:46 UTC |