ehdonhon has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks,
I'm having a bit of difficulty with Net::Netmask. I am not sure if its because I'm doing something wrong, or if the module is not working correctly.
Output:perl -MNet::Netmask my $b = new2 Net::Netmask( '218.0.0.0 - 221.255.255.255' ); if ( $b->match('216.23.234.32') ) { print "Match!\n"; }
Match!
The IP I am trying to match is certainly not within the netblock I have constructed, yet the Netmask object believes that it is. Is this a bug?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unexpected behavior with Net::Netmask
by ferrency (Deacon) on Jul 31, 2002 at 20:02 UTC | |
|
Re: Unexpected behavior with Net::Netmask
by Chmrr (Vicar) on Jul 31, 2002 at 20:14 UTC | |
|
Re: Unexpected behavior with Net::Netmask
by runrig (Abbot) on Jul 31, 2002 at 22:39 UTC | |
|
RESOLUTION: Unexpected behavior with Net::Netmask
by ehdonhon (Curate) on Aug 06, 2002 at 17:09 UTC |