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: 30037
Status: open
Priority: 0/
Queue: PPI

People
Owner: Nobody in particular
Requestors: martin [...] hybyte.com
Cc:
AdminCc:

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



Subject: incorect var=-Foo::Bar::meth() / makes -Foo and ::Bar
Date: Tue, 16 Oct 2007 18:18:07 +0100
To: bug-PPI [...] rt.cpan.org
From: Martin Friebe <martin [...] hybyte.com>
for the code $a=-xx::cc() see below instead of 2 Words "-xx" and "::cc", there should be an operator "-" and a word "xx::cc" tested with PPI 1.200 / perl 5.8.8 perl -wle 'use PPI; use Data::Dumper; $a= "\$a=-xx::cc() "; warn Dumper( PPI::Document->new(\$a) )' $VAR1 = bless( { 'readonly' => '', 'children' => [ bless( { 'children' => [ bless( { 'content' => '$a' }, 'PPI::Token::Symbol' ), bless( { 'content' => '=' }, 'PPI::Token::Operator' ), bless( { 'content' => '-xx' }, 'PPI::Token::Word' ), bless( { 'content' => '::cc' }, 'PPI::Token::Word' ), bless( { 'finish' => bless( { 'content' => ')' }, 'PPI::Token::Structure' ), 'children' => [], 'start' => bless( { 'content' => '(' }, 'PPI::Token::Structure' ) }, 'PPI::Structure::List' ) ] }, 'PPI::Statement' ), bless( { 'content' => ' ' }, 'PPI::Token::Whitespace' ) ], 'tab_width' => 1 }, 'PPI::Document' );
Confirming this bug exists in 1.215
This issue is now being tracked on GitHub as https://github.com/adamkennedy/PPI/issues/59