CPAN is your friend:
http://search.cpan.org/doc/KMELTZ/Apache-Htpasswd-1.3/Htpasswd.pm
On 14-Aug-2000 Shuba Simha wrote:
> Can anybody tell me if there is any way to add an entry into ".htpasswd"
> from a perl script, without getting prompted for the password? Meaning..I
> have the password in a variable(say $new_pass), & want to change the
> password of a particular user from old_pass to $new_pass. How can this be
> done through the script, without getting the prompt to "Type new password"?
>
> Any help ASAP is very much appreciated.
> Thanks..
> Shuba
>
>
>
>
>
--
Jason Bodnar + [EMAIL PROTECTED] + Team Linux
Rock 'n' Roll had become stagnant. `Achy Breaky Heart' was seven years
away. Something had to fill the void, and that something was barbershop.
-- Homer Simpson
Homer's Barbershop Quartet