![]() |
![]() ![]() |
![]() |
|
|
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().
If rather than formatting bugs, you encounter substantive content errors in these documents, such as mistakes in the explanations or code, please use the perlbug utility included with the Perl distribution.
![]() |
![]() |
![]() ![]() |
![]() |
![]() |
![]() |
||
![]() |
DOCUMENTATION DOWNLOADS CPAN FAQs MARKETPLACE SEARCH REFERENCE CONTACT US | ||
![]() |
![]() |
Compilation Copyright © 1998-2000 O'Reilly & Associates, Inc.