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.