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: 27364
Status: resolved
Priority: 0/
Queue: PPI

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

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



PPI lexes this code.. DESTROY{} 1; as (whitespace nodes pruned)... PPI::Document PPI::Statement PPI::Token::Word 'DESTROY' PPI::Structure::Block { ... } PPI::Token::Number '1' PPI::Token::Structure ';' Note how the "1;" statement is part of the DESTROY statement. I'm not sure, but I think "DESTROY{}" should be a PPI::Statement::Scheduled just like "BEGIN{}".
A fix for this has been released as a dev version to CPAN. Please test and give feedback here: https://github.com/adamkennedy/PPI/issues/92
The full version of the fix for this is now released to CPAN as PPI 1.220.