Полезная информация

Programming Perl

Programming PerlSearch this book
Previous: 3.2.62 getpwnamChapter 3
Next: 3.2.64 getservbyname

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:


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

In scalar context, getpwuid returns the username.

Previous: 3.2.62 getpwnamProgramming PerlNext: 3.2.64 getservbyname
3.2.62 getpwnamBook Index3.2.64 getservbyname