> Hello Friends, > > I am looking for an elegant way of converting the CIDR prefix into > Dotted-decimal notation in PERL. > Can someone help me out if you have already one in place. > > i.e > > CIDR prefix length Dotted-decimal Binary > /1 128.0.0.0 1000 0000 > 0000 0000 0000 0000 0000 0000 > /2 192.0.0.0 1100 0000 > 0000 0000 0000 0000 0000 0000 > /3 224.0.0.0 1110 0000 > 0000 0000 0000 0000 0000 0000 > > etc > > TIA.
How about one of these: http://search.cpan.org/search?query=CIDR&mode=all http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>