Subject: | Incorrect parsing of HEREDOCs (possibly by PPI) |
The following snippet is truncated by the time it reaches the violates
method. I fed this to `perlcritic -severity 1 < input' and
instrumented my RequirePerlTity.pm. Is this is a PPI issue? I only
noticed this because my code was perltidy clean but the
RequirePerlTidy.pm was complaining that perltidy didn't find clean
code. Apparently P::C or PPI was modifying my source somewhere along
the way.
Original source:
my @clients = @{ $dbh->selectall_arrayref( <<'CLIENTS' ) || [] };
...
CLIENTS
Results:
my @clients = @{ $dbh->selectall_arrayref( <<'CLIENTS' ) || [] };
Instrumentation:
sub violates {
...
my $source = "$doc";print STDERR "<<$source>>\n";
...
Josh