For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > June 2006 > get firs IP and last IP of a network: how?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author get firs IP and last IP of a network: how?
mario.lat_

2006-06-24, 8:02 am

hallo,
I'd like to know the first ip, mask and last ip of a network.
BUT I know only an IP and network:
for example:

192.168.134.197/30

where 192.168.134.197 is not a network but an ip of a network.

for this reason the follow command don't works:

my $ip = new Net::IP ('192.168.134.197/30') or die (Net::IP::Error());

How can I do?
Thank you in advance,
Mario.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com