diff options
author | Aristotle Pagaltzis <pagaltzis@gmx.de> | 2014-03-11 13:58:19 +0100 |
---|---|---|
committer | Aristotle Pagaltzis <pagaltzis@gmx.de> | 2014-03-11 13:58:19 +0100 |
commit | f0081f64cc268c6765e7cdc0539513842b398eb3 (patch) | |
tree | 482fb88985b93648a11c955ea341569d529cafd7 /pod/perlfunc.pod | |
parent | 08a33b6b0b73cadc9417b2e9e278d4bf6db28233 (diff) | |
download | perl-f0081f64cc268c6765e7cdc0539513842b398eb3.tar.gz |
perlfunc: layout getpw*&c return values as a table
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 16 |
1 files changed, 9 insertions, 7 deletions
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.) |