Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

perlfunc:getlogin

by gods
on Aug 24, 1999 at 22:42 UTC ( #215=perlfunc: print w/replies, xml ) Need Help??

getlogin

See 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().


Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and a log crumbles through the grate...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2017-02-24 00:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (351 votes). Check out past polls.