Subject: | Misparse of ternary expression |
When the token left of the ":" in a ternary expression is a bareword,
PPI misparses it as a label. Here's an example:
$foo = $condition ? undef : 1;
PPI::Document
PPI::Statement
PPI::Token::Symbol '$foo'
PPI::Token::Operator '='
PPI::Token::Symbol '$condition'
PPI::Token::Operator '?'
PPI::Token::Label 'undef :'
PPI::Token::Number '1'
PPI::Token::Structure ';'