getpwnam name
Retrieves the passwd file entry of a user, name. The return value in list context is:
($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$dir,$shell)
getpwent
In scalar context, getpwnam returns only the numeric user ID.
getpwnam
[ Library Home | Perl in a Nutshell | Learning Perl | Learning Perl on Win32 | Programming Perl | Advanced Perl Programming | Perl Cookbook ]