Programming Perl

Programming PerlSearch this book
Previous: 3.2.50 getloginChapter 3
Functions
Next: 3.2.52 getnetbyname
 

3.2.51 getnetbyaddr

getnetbyaddr ADDR, ADDRTYPE

This function does the same thing as getnetbyaddr(3): it translates a network address to the corresponding network name or names. The return value in list context is:

($name, $aliases, $addrtype, $net)

In scalar context, getnetbyaddr returns only the network name.


Previous: 3.2.50 getloginProgramming PerlNext: 3.2.52 getnetbyname
3.2.50 getloginBook Index3.2.52 getnetbyname