use CGI; $username = CGI->remote_user(); [download]
In reply to Re: Logging through a .htaccess dialog by huskey in thread Logging through a .htaccess dialog by Nik