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
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
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) {