See below - > ---------- > From: Wagner > Sent: Friday, September 28, 2001 7:40 AM > To: [EMAIL PROTECTED] > Subject: Boolean operators... > > Hi, > > I'm trying to do a comparisson with boolean operators and it is not > working... > > Example: > $user1 > $user2 > $password1 > $password2 (this are the variables)... > > The comparisson: > > if (( $user1 ne "myself" || $password1 ne "pass1") && ( $user2 ne > "yourself" > || $password2 ne "pass2")) { > > print "dfdfsafsa"; > > } > > Boolean? Well - try:
print "Our IDs and PWs don't match..." unless (($user1 =~ /myself/ && $passwd1 =~ /mypass/) && ($user2 =~ /yourself/ && $passwd1 =~ /yourpass/)); Only TRUE if ALL conditions are met... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]