[Chapter 3] 3.2.63 getpwuid
Author: Larry Wall, Tom Christiansen & Randal L. Schwartz
Date: 1999-07-02T01:50:32Z

#

| Chapter 3 Functions |

### 3.2.63 getpwuid

    getpwuid UID

This function does the same thing as getpwuid(3): it translates a numeric user id to the corresponding passwd file entry. The return value in list context is:

    ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$dir,$shell)

If you want to do this repeatedly, consider slurping the data into a hash using getpwent.

In scalar context, getpwuid returns the username.

3.2.62 getpwnam |  | 3.2.64 getservbyname