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

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

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



Subject: Form feed appears to be white space
Download (untitled) / with headers
text/plain 783b
PPI sometimes blows up when encountering a form feed ("\f") used as white space in Perl. Denoting the form feed by "^L", this occurs in ^L; but not in # comment ^L The difference appears to be whether the parse goes through PPI::Token::Whitespace::__TOKENIZER__on_char(). This was brought to my attention by Perl::Critic ticket https://rt.cpan.org/Ticket/Display.html?id=67491 I intend to commit a proposed patch, but want to commit the ticket first so I can refer to it in the commit message. I offer this a bit diffidently, since I have yet to find in the Perl documentation exactly what characters are legal as white space in Perl code. But I offer it anyway on the observation that a random sample of Perls from 5.6.2 to 5.12.3 appear to accept form feeds as white space.
Proposed patch committed as SVN revision 14134.
This was fixed in 2011, so i'm closing the ticket. :)


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.