Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Unexpected behavior with Net::Netmask

by Chmrr (Vicar)
on Jul 31, 2002 at 20:14 UTC ( #186586=note: print w/replies, xml ) Need Help??

in reply to Unexpected behavior with Net::Netmask

ferrancy has almost certainly hit the nail on the head. A bit of simple testing with the following program:

use Net::Netmask; use strict; use warnings; my $b = new2 Net::Netmask( ' - '.shift(@ARGV).'.255.255.255') or die "Argh: $Net::Netmask::error"; print map "$_\n", $b->base, $b->mask, $b->size, $b->next;

..shows that it can't deal with many of the ranges around there, ("could not fine exact fit for...") but erroneously thinks that it finds one with a range of - when you ask it for your particular case, -! Why it does that instead of erroring out, I don't know; my guess is that t'is a bug.

perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2016-10-22 20:17 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (297 votes). Check out past polls.