in reply to Surprised by Perl parse of ternary operator
I guess that the perl parser is a bit of a smart-ass here, as bending the precedence rules a little will allow the expression to get successfully parsed, instead of producing an unhelpful syntax error.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Surprised by Perl parse of ternary operator
by moritz (Cardinal) on Dec 16, 2011 at 12:50 UTC | |
|
Re^2: Surprised by Perl parse of ternary operator
by eyepopslikeamosquito (Archbishop) on Dec 16, 2011 at 12:52 UTC | |
by BrowserUk (Patriarch) on Dec 16, 2011 at 13:18 UTC | |
by Anonymous Monk on Dec 16, 2011 at 15:32 UTC | |
by tye (Sage) on Dec 16, 2011 at 14:53 UTC | |
by wrog (Friar) on Jan 16, 2012 at 00:27 UTC | |
by tye (Sage) on Jan 16, 2012 at 04:32 UTC |