| Fetching user and group infoReturn who logged in at this ttyDaftar Isi - getlogin
This implements the C library function of the same name, which on mostsystems returns the current login from /etc/utmp, if any. If itreturns the empty string, use getpwuid . - $login = getlogin || getpwuid($<) || "Kilroy";
Do not consider getlogin for authentication: it is not assecure as getpwuid . Portability issues: getlogin in perlport. |
| |
|