Subject: | PPI bug |
Date: | Mon, 27 Apr 2009 16:28:58 +0200 |
To: | bug-PPI [...] rt.cpan.org |
From: | Maxime Soulé <max [...] scoubidou.com> |
Hello,
I use PPI to strip comments, PODs and the likes from my scripts. I am
glad but I encountered a bug during heredoc parsing.
Thanks to the CPAN, I tried 1.200 to 1.204_01 versions with the same result.
Just try this script to reproduce the problem :
-----8<-----
#!/usr/local/bin/perl -w
use strict;
use PPI;
my $document = PPI::Document->new($0);
print $document->content;
my $b = <<EOF;
usage: $0
EOF
my $a = "OK\n";
-----8<-----
As you can see, the heredoc part is mistakenly removed...
Thank you very much for your work and your help.
Best regards,
Max.