in reply to How do you grab username/login id in Unix?

Hello, you can also use
my $user = `whoami`;
command to grab the user login name.