Also indented heredoc removes specified indentation from the result of calling $heredoc->heredoc.
my $content = q(
my $heredoc = <<~HERE
indented
HERE
);
my $doc = PPI::Document->new(\$content);
my $heredoc = $doc->find_first('PPI::Token::HereDoc');
print $heredoc->heredoc; # "indented\n"
This p-r supports indented here-doc from perl-5.26 and resolves #203
before:
after:
Also indented heredoc removes specified indentation from the result of calling
$heredoc->heredoc
.