in reply to whoami?

sorry - bad information

please refer below for correct and useful answers

Replies are listed 'Best First'.
Re: Re: whoami?
by Fastolfe (Vicar) on Nov 20, 2000 at 23:56 UTC
    The UID and GID are kept in the standard Perl variables $</$> and $(/$). You can then discover the username via getpwuid:
    print "Your username is: ", getpwuid($<) || "unknown???", "\n";
    This allows you to get this information without ever needing to spawn an external process.