getlogin
- getlogin
This implements the C library function of the same name, which on most systems returns the current login from /etc/utmp, if any. If it returns the empty string, use
getpwuid.Do not consider
getloginfor authentication: it is not as secure asgetpwuid.Portability issues: getlogin in perlport.