in reply to Re: Re: Perl and WINNT write problemin thread Perl and WINNT write problem
print Win32::LoginName(); [download]
On the IIS that ive used $ENV{USERNAME} isn't set for CGI scripts. The Win32 call works though.