From f0081f64cc268c6765e7cdc0539513842b398eb3 Mon Sep 17 00:00:00 2001 From: Aristotle Pagaltzis Date: Tue, 11 Mar 2014 13:58:19 +0100 Subject: perlfunc: layout getpw*&c return values as a table --- pod/perlfunc.pod | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'pod/perlfunc.pod') diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 4a3893a94b..065e2e470c 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -2684,13 +2684,15 @@ 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: - ($name,$passwd,$uid,$gid, - $quota,$comment,$gcos,$dir,$shell,$expire) = getpw* - ($name,$passwd,$gid,$members) = getgr* - ($name,$aliases,$addrtype,$length,@addrs) = gethost* - ($name,$aliases,$addrtype,$net) = getnet* - ($name,$aliases,$proto) = getproto* - ($name,$aliases,$port,$proto) = getserv* + # 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 ) = gethost* + ( $name, $passwd, $uid, $gid, $quota, + $comment, $gcos, $dir, $shell, $expire ) = getpw* + # 5 6 7 8 9 (If the entry doesn't exist you get an empty list.) -- cgit v1.2.1