On Dec 9, 7:01 am, [email protected] (Tony Esposito) wrote:
> I need to get the current USER env var in a Windows Perl program.  Does 
> anyone know how this is done?  I have done it on UNIX/Linux.
>
> Thx.

perl -e "print $ENV{'USERNAME'}"


--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to