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
PPI interprets the 'package' in bless { package => $foo } as a package statement. Test attached.
Subject: test5.pl
#!/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;
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