Nik has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Logging through a .htaccess dialog
by chromatic (Archbishop) on Sep 22, 2003 at 17:54 UTC

    Here's how to find out:

    #!/usr/bin/perl -w use CGI; my $q = CGI->new(); $q->header( 'text/plain' ); while (my ($key, $value) = each %ENV) { print "$key => $value\n"; }
Re: Logging through a .htaccess dialog
by huskey (Beadle) on Sep 22, 2003 at 19:32 UTC
    If you are using the CGI module:
    use CGI; $username = CGI->remote_user();

    Or the Environmental variable:
     $username = $ENV{'REMOTE_USER'}