endservent
These routines are the same as their counterparts in the system C library. In list context, the return values from the various get routines are as follows:
# 0 1 2 3 4
( $name, $passwd, $gid, $members ) = getgr*
( $name, $aliases, $addrtype, $net ) = getnet*
( $name, $aliases, $port, $proto ) = getserv*
( $name, $aliases, $proto ) = getproto*
( $name, $aliases, $addrtype, $length, @addrs ) = getho