Cari di Perl 
    Perl User Manual
Daftar Isi
(Sebelumnya) Get group record given group nameGet next passwd record (Berikutnya)
Fetching user and group info

Return who logged in at this tty

Daftar 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.

    1. $login = getlogin || getpwuid($<) || "Kilroy";

    Do not consider getlogin for authentication: it is not assecure as getpwuid.

    Portability issues: getlogin in perlport.

 
Source : perldoc.perl.org - Official documentation for the Perl programming language
Site maintained by Jon Allen (JJ)     See the project page for more details
Documentation maintained by the Perl 5 Porters
(Sebelumnya) Get group record given group nameGet next passwd record (Berikutnya)