Subject: | unitialized value warning on parsing a hashmark with linebreak |
Date: | Wed, 31 Mar 2010 03:19:01 +0200 |
To: | bug-Text-WikiCreole [...] rt.cpan.org |
From: | Peter Retep <peter_retep [...] gmx.de> |
on parsing a # with a following newline, Text::WikiCreole outputs a warning
in concatenation of $html and calling parse() recursively.
perl -e 'use Text::WikiCreole;print Text::WikiCreole::creole_parse("#\n")'
Use of uninitialized value in concatenation (.) or string at
/usr/local/share/perl/5.10.0/Text/WikiCreole.pm line 545.
<ol>
</ol>
perl -v
This is perl, v5.10.0 built for i486-linux-gnu-thread-multi
grep "VERSION =" /usr/local/share/perl/5.10.0/Text/WikiCreole.pm
our $VERSION = "0.07";
if($t && $chunks{$ch}{contains}) { # if it contains other chunks...
$html .= parse(\$t, $ch); # recurse.
} else {
$html .= $t; # otherwise, print it
}
$html .= $chunks{$ch}{close}; # print the close tag