You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
# The syntax is (name, altnames, addrtype, net) = getnetent();
|
|
|
|
#!/usr/local/bin/perl
|
|
|
|
while (($name, $altnames, $addrtype, $rawaddr) = getnetent()) {
|
|
@addrbytes = unpack ("C4", $rawaddr);
|
|
$address = join (".", @addrbytes);
|
|
print ("$name, at address $address\n");
|
|
} |