G
Gerald Jones
Hi,
So this output might be shorthand for something but, I'm a newjack at
networking and I'd like to know if this is a bug (doubtful) or not. I have the
following snippet:
--8<--
#!/usr/bin/perl
use Net::CIDR; # using version 0.09
$cidr = Net::CIDR::range2cidr("1.2.3.0 - 1.2.3.255");
print "$cidr\n"; # outputs: 1.2.3.0/24
$cidr = Net::CIDR::range2cidr("1.2.3.4 - 1.2.3.255");
print "$cidr\n"; # outputs: 6
$cidr = Net::CIDR::range2cidr("1.2.3.4 - 1.5.6.7");
print "$cidr\n"; # outputs: 17
-->8--
So, what does the second two outputs mean? How do I convert it to the form of
the first output line?
Thanks,
Gerald.
So this output might be shorthand for something but, I'm a newjack at
networking and I'd like to know if this is a bug (doubtful) or not. I have the
following snippet:
--8<--
#!/usr/bin/perl
use Net::CIDR; # using version 0.09
$cidr = Net::CIDR::range2cidr("1.2.3.0 - 1.2.3.255");
print "$cidr\n"; # outputs: 1.2.3.0/24
$cidr = Net::CIDR::range2cidr("1.2.3.4 - 1.2.3.255");
print "$cidr\n"; # outputs: 6
$cidr = Net::CIDR::range2cidr("1.2.3.4 - 1.5.6.7");
print "$cidr\n"; # outputs: 17
-->8--
So, what does the second two outputs mean? How do I convert it to the form of
the first output line?
Thanks,
Gerald.