![]() |
|
The stupid question is the question not asked | |
PerlMonks |
perlfunc:getloginby gods (Initiate) |
on Aug 24, 1999 at 22:42 UTC ( [id://215]=perlfunc: print w/replies, xml ) | Need Help?? |
getloginSee the current Perl documentation for getlogin. Here is our local, out-dated (pre-5.6) version: ![]() getlogin - return who logged in at this tty
![]() getlogin
![]() Implements the C library function of the same name, which on most systems returns the current login from /etc/utmp, if any. If null, use getpwuid().
$login = getlogin || getpwuid($<) || "Kilroy"; Do not consider getlogin() for authentication: it is not as secure as getpwuid(). |
|