Help?
#Check for empty string, 1 and 2nd password entries match
&nameerr if (($new1 eq "")¦¦($new2 eq "")¦¦($new1 ne $new2));
#Check password length
&passworderr if (length($new1) < 6);
#Check for complexity
if ($new1 =~ /[A-Z]/ and $new1 =~ /[a-z]/ and $new1 =~ /\d/) {
&set_password;
} else {
&passworderr;
}
I'd show you what I had before, but you'd probably die laughing...
if ($new1 =~ /\W/) {"Error: invalid character in password";}