in reply to Re^2: if/else syntax
in thread if/else syntax
I don't think so. With if/else:
could meanif a if b c else d
if a { if b { c } else { d } } or if a { if b { c } } else { d }
With the ternary operator that would be
a ? b ? c : d : () and a ? b ? c : () : d
so there's no abmbiguity.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: if/else syntax
by gwadej (Chaplain) on Jun 26, 2009 at 16:44 UTC | |
by Anonymous Monk on Jun 26, 2009 at 17:01 UTC | |
by ikegami (Patriarch) on Jun 26, 2009 at 17:20 UTC | |
by massa (Hermit) on Jun 26, 2009 at 17:33 UTC | |
by gwadej (Chaplain) on Jun 29, 2009 at 13:34 UTC | |
Re^4: if/else syntax
by Anonymous Monk on Jun 26, 2009 at 16:27 UTC | |
by Transient (Hermit) on Jun 26, 2009 at 17:21 UTC |
In Section
Seekers of Perl Wisdom