in reply to authenticate with perl

Sometimes it's easier and safer not to write your own password checking solution, but to set up your web server, for example.
Sorry if my advice was wrong.