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.
----------------------------------------------------------------------------
----------------

regards,

Ajitpal Singh,

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to