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

Conditional Expressions

Thread Next
Naveen Parmar
January 16, 2002 13:20
Conditional Expressions
Message ID:
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?

- NP

MSN Photos is the easiest way to share and print your photos:

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About