in reply to Matching values in array

You ask about a very specific Perl problem, but I am dubious about the application you are trying to achieve.

Secure and Unsecure Passwords

What is this situation where you have clear-text passwords? Do you consider this a secure situation?

Monitoring Passwords

Depending on the situation, it's good to test passwords for a certain standard, at the time the user wants to set his/her password. Check for common words, variations on the user's account name, etc. But testing should be appropriate to the circumstance in which it is used. If you are runnning a bank, it's suitable to insist users have secure passwords which are changed regularly. If you are providing a pay web site, the only problem with someone hacking a customer's login is that they are obtaining free access to your service. But the odds are they will distribute that login information, and you'll detect the site slowing down as hundreds of users connect, at which point you can disable that account to protect your site. The customer will eventually be in touch, at which point he can receive the standard lecture on insecure passwords.

--
TTTATCGGTCGTTATATAGATGTTTGCA