CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
decrease ip address bit from /32 to /31 and so on.

 



sh.ajay12
User

Jan 13, 2014, 5:24 AM

Post #1 of 1 (1157 views)
decrease ip address bit from /32 to /31 and so on. Can't Post

Hello Members,

I am facing problem in completing this requirement.

Please let me know if there is any cpan module to complete below requirement.

Grow Ip address: which means the ip address is supplied in this format.

$Address=62.239.34.133/32

Grow ip address: I have convert the /32 part to /31 and similarly from /31 to /30 till /24 and it should go beyond /24

shrink ip address:
if the supplied $Address=192.168.234.0/28 then i have to convert the /28 to /29 and similarly from /29 to /30 and it should go beyond /32.

Thank you very much.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives