in reply to (tye)Re: Why not support this syntax?
in thread Why not support this syntax?
What you're implicitly suggesting is that Perl would change symantics from && between inequalities to ||, but how could perl possibly know when to do this and when not to? Eg. in my original expression, what would Perl do if $x was greater than $max? I think your example can more sensibly be expressed as:if ($min > $x > $max) { ... }
unless ($min < $x < $max) { ... }
MeowChow s aamecha.s a..a\u$&owag.print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re2: Why not support this syntax?
by tye (Sage) on Apr 24, 2001 at 20:40 UTC |