in reply to Re: How can I change the perl program involving if-elsif-else conditional to get correct result?
in thread How can I change the perl program involving if-elsif-else conditional to get correct result?
if($a>$b>$c) is not the way you should think, this is erronousThough it may be "erronous" in Perl 5, I don't think it is erroneous in general. In fact, I think it is a sweet and natural syntax, aka "Chained Comparisons", and supported by both Perl 6 and Python.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How can I change the perl program involving if-elsif-else conditional to get correct result?
by nemesdani (Friar) on Apr 23, 2012 at 11:34 UTC |