in reply to
How do you grab username/login id in Unix?
getpwuid($<)
will give you the uid of the user running the script.
getpwnam
from there will get you the login name and possibly the real name of the user.
Comment on
Re: How do you grab username/login id in Unix?
Select
or
Download
Code
In Section
Seekers of Perl Wisdom