in reply to unless....else
You would have to replace the elsunless block with:unless ($login and $pass) { print "need login and pass"; } elsunless (valid($pass)) { print "invalid password"; } else { print "logged in"; }
Note that this example should not be used as a model for login/pass validation, by the way. ;)elsif (!valid($pass)) {
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
---|