From: WC -Sx- Jones <[EMAIL PROTECTED]>
> Tim Johnson wrote:
> > If you are on a Win32 system, you can check the $ENV{USERNAME}
> > value. 
> 
> Do not use that on Unix -- $ENV{USERNAME} can
> be lied about easily...

Plus it's usualy not set under Win9x. (Not sure about Win ME)

If you are under Windows 

        use Win32;
        $username = Win32::LoginName();

HTH, Jenda


===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to