Results 1 to 1 of 1
Is there any module or way to find out netmask for a particular ip/host in perl same as like following ?
use Socket;
$packed_ip = gethostbyname("www.perl.org");
if (defined $packed_ip) {
...
- 03-11-2008 #1Linux Newbie
- Join Date
- Jan 2008
- Posts
- 114
How to find a netmask using per script
Is there any module or way to find out netmask for a particular ip/host in perl same as like following ?
use Socket;
$packed_ip = gethostbyname("www.perl.org");
if (defined $packed_ip) {
$ip_address = inet_ntoa($packed_ip);
}Switched to Scripting


Reply With Quote