Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the PPI CPAN distribution.

Report information
The Basics
Id: 41170
Status: open
Priority: 0/
Queue: PPI

People
Owner: Nobody in particular
Requestors: thaljef [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.203
Fixed in: (no value)



Subject: Misparse of ternary expression
Download (untitled) / with headers
text/plain 402b
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 ';'
Confirming this exists in 1.215


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.