Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2018-06-21 13:22 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (118 votes). Check out past polls.