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

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

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



Subject: misparse in bless statement
Download (untitled) / with headers
text/plain 100b
PPI interprets the 'package' in bless { package => $foo } as a package statement. Test attached.
Subject: test5.pl
Download test5.pl
text/x-perl 274b
#!/usr/bin/env perl use strict; use warnings; use Test::More; use PPI; my $file = <<'EOF'; bless { package => $namespace } EOF my $ppi = PPI::Document->new(\$file); ok(!$ppi->find(sub { $_[1]->isa('PPI::Statement::Package') }), "no package statement"); done_testing;
Download (untitled) / with headers
text/plain 258b
On Wed May 12 14:58:15 2010, DOY wrote: Show quoted text
> PPI interprets the 'package' in > > bless { package => $foo } > > as a package statement. Test attached.
This appears to me to be fixed by PPI 1.215, possibly as a result of the patch accompanying RT 64247. Tom
Confirmed resolved


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.