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

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: getpwnamChapter 5
Function Reference
Next: Reference: getservbyname


getpwuid uid

Retrieves the passwd file entry with the user ID uid. 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: Reference: getpwnamPerl in a NutshellNext: Reference: getservbyname
Reference: getpwnamBook IndexReference: getservbyname