in reply to Basic http authentication in Perl
If you want to do this with mod_perl on an Apache server, there's a great book called Writing Apache Modules with Perl and C. And here's a sample chapter on Authentication & Authorization.
In Section
Seekers of Perl Wisdom