>>>>> "RF" == Ryan Fischer <[EMAIL PROTECTED]> writes:
>> On Thu, Dec 13, 2001 at 02:29:14PM +0100, Kim Schulz wrote: >> > How short kan you make a program (oneliner?) that: >> > >> > * checks if a password is 5 characters long or more >> > * checks if the password contains at least 3 alpha chars (a-zA-Z) >> > * checks if the password contains at least 2 numbers (0-9) >> >> Well, the first condition is redundant. :-) RF> No it's not. There are situations where one of those can be true and RF> the others aren't. huh? if it has at least 3 alpha and at least 2 digits, then it has at least 5 chars. so if the last two are true, there is no need to test for the first condition which makes it redundant. uri -- Uri Guttman ------ [EMAIL PROTECTED] -------- http://www.stemsystems.com -- Stem is an Open Source Network Development Toolkit and Application Suite - ----- Stem and Perl Development, Systems Architecture, Design and Coding ---- Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org