in reply to Re: Determining real name from login name
in thread Determining real name from login name

Hello,

Thanks for the advice. Sorry for not mentioning the OS - it's SunOS 5.8.

I looked at http://www.perldoc.com/perl5.8.4/pod/func/getpwnam.html, where I found

($name,$passwd,$uid,$gid, $quota,$comment,$gcos,$dir,$shell,$expire) = getpw*;

but I don't understand what the star means and it seemed to cause a syntax error. Can anyone enlighten me here?

I did though manage to solve my problem with

my ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$dir,$shell,$expire) = getpwnam($loginName);

Thanks again for the help,

loris