|Subject:||Form feed appears to be white space|
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 ticketI 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.