Subject: | Text::WikiCreole [0.03] croaks on undefined input. |
Date: | Mon, 8 Oct 2007 10:10:57 +0200 |
To: | bug-Text-WikiCreole [...] rt.cpan.org |
From: | Mark Lawrence <nomad [...] null.net> |
Test case:
use Text::WikiCreole;
creole_parse(undef);
Running the above results in lots of "uninitialized value in pattern match"
error messages and infinite recursion.
I've fixed this in my local copy by adding the following to the very
start of creole_parse():
return '' unless(defined($_[0]));
but most likely the issue is inside the parse() method itself.
p.s. Great module by the way. Been hoping someone was going to write up
Creole...
Cheers,
Mark.
--
Mark Lawrence