http://www.perlmonks.org?node_id=136833


in reply to Perl and Apache Configuration Files

Super Search brings a lot of results on this topic,
one including a pointer to HTTPD::UserManage,
which seems a good solution to my mind.

UPDATE :

Another solution could be Apache::Htpasswd

"Only Bad Coders Code Badly In Perl" (OBC2BIP)