Date: | Sat, 11 Oct 2003 00:08:43 +1000 |
From: | Iain Truskett <spoon [...] cpan.org> |
To: | bug-pod-simple [...] rt.cpan.org |
Subject: | undef $/ |
Due to a typing error, I uncovered a bug in Pod::Simple. It appears to
assume that $/ is set to its default value. If you undef $/, Pod::Simple
has great trouble parsing.
You may want to ensure $/ has a 'good value' and set one (using local of
course) if not.
Just spent 10 minutes trying to find out why Pod::Simple was giving me
garbage. Turned out my slurp with C<< do { undef $/; <DATA> } >> had
been written as that rather than with C<< local $/ >>. +1 in that it
helped me find my bug. -1 in that it doesn't just cope gracefully.
cheers,
--
Iain. <http://eh.org/~koschei/>