Re: Comparison: finding if a value is gt some value AND lt another

2002-09-30 Thread eric-perl
On Fri, 27 Sep 2002, Jeff 'japhy' Pinyan wrote: On Sep 27, [EMAIL PROTECTED] said: Is there a simple way to find if a variable's value is within a range? if (1 $x 5) { print 'foo'; } ...or do I have to join two separate comparisons using the logical AND operator? e.g., if (1 $x and

Comparison: finding if a value is gt some value AND lt another

2002-09-27 Thread eric-perl
Hello, All: Is there a simple way to find if a variable's value is within a range? e.g., if (1 $x 5) { print 'foo'; } or do I have to join two separate comparisons using the logical AND operator? e.g., if (1 $x and $x 5) { print 'foo'; } -- Eric P. Sunnyvale, CA -- To

Re: Comparison: finding if a value is gt some value AND lt another

2002-09-27 Thread Jeff 'japhy' Pinyan
On Sep 27, [EMAIL PROTECTED] said: Is there a simple way to find if a variable's value is within a range? e.g., if (1 $x 5) { print 'foo'; } You can't do that until Perl 6. or do I have to join two separate comparisons using the logical AND operator? e.g., if (1 $x and $x 5) {