develooper Front page | perl.beginners | Postings from January 2002

Conditional Expressions

Thread Next
From:
Naveen Parmar
Date:
January 16, 2002 13:20
Subject:
Conditional Expressions
Message ID:
F77dx20gEssSZFviI3t00013af9@hotmail.com
The following conditional expression tests whether the value of $number1 is 
negative or greater than 12:

(($number1 < 1) || ($number1 > 12))"

Shouldn't this test whether the number is 0, negative, or > 12? Is this 
unique to the way Perl uses numbers?

TIA,
- NP

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About