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

Owner: Nobody in particular
Requestors: user42 [...]

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

Subject: literal() wrong result on "qw (a b c)"
Date: Thu, 08 Oct 2009 09:31:10 +1100
To: bug-PPI [...]
From: Kevin Ryde <user42 [...]>
Download (untitled) / with headers
text/plain 267b
With PPI 1.206 and recent debian i386 perl 5.10.1, the program below prints (a,b,c where I hoped it would be a,b,c I think whitespace after qw like "qw (a b c)" is allowed, the same as with other "q"s, or at least it runs fine, and comes about as a,b,c.
text/x-perl 245b
use strict; use warnings; use PPI; my $document = PPI::Document->new (\'qw (a b c)') or die $@->message; my $words = $document->schild(0)->schild(0); print ref $words,"\n"; my @words = $words->literal; print join(',', @words),"\n"; exit 0;
Download (untitled) / with headers
text/plain 186b
Changed the contributed ->literal to use the section information automatically populated by the quote engine, rather than assuming the substring range to use. Fixed in the next release.

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

Please report any issues with to