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

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: getpwentChapter 5
Function Reference
Next: Reference: getpwuid


getpwnam name

Retrieves the passwd file entry of a user, name. The return value in list context is:

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

In scalar context, getpwnam returns only the numeric user ID.

Previous: Reference: getpwentPerl in a NutshellNext: Reference: getpwuid
Reference: getpwentBook IndexReference: getpwuid