develooper Front page | perl.perl5.porters | Postings from January 2012

[rt.cpan.org #72197] [perl #97910] podchecker false errors for = inside quoted strings

Thread Previous
From:
Marek Rouchal via RT
Date:
January 8, 2012 13:52
Subject:
[rt.cpan.org #72197] [perl #97910] podchecker false errors for = inside quoted strings
Message ID:
rt-3.8.HEAD-10497-1326059532-1158.72197-6-0@rt.cpan.org
<URL: https://rt.cpan.org/Ticket/Display.html?id=72197 >

This is not a bug. The problem is that if one would want to fix this
ENTIRELY, the Pod parsing utilities would have to use the SAME parser as
Perl itself - which is rather heavy-weight for a simple purpose like Pod
(the embedded documentation). Please do not expect a fix here.

If I may suggest a workaround:

my $text = <<"EOT";
#===========================
# my text here
#===========================
EOT
$text =~ s/^#//m; # remove comment; required to escape the = from being
interpreted as POD
print $text;

HTH,

Marek

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About