Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Can someone explain this weird Pod::Html bug?by tachyon (Chancellor) |
on Nov 30, 2001 at 14:57 UTC ( [id://128592]=perlquestion: print w/replies, xml ) | Need Help?? |
tachyon has asked for the wisdom of the Perl Monks concerning the following question: I wrote a little script for my home site at perlmonk.org to automatically pod2html my public scripts and modules, write the index pages, etc. Just another day in the office. OK so it all works fine under Win32. When I upload it and try to run it under Free BSD 4.04 it breaks. As I said the script is writing HTML from the pod of a number of scripts. It breaks because pod2html is not writing any HTML for the script itself (which has pod). OK I think, there is some OS related problem with pod2html(ing) a running script. Not so. After several frustrating hours I have isolated the follwing bug:
OK so far, that works as expected, but....
As you can see this produces no output! But wait, it gets even more odd....
As you can see with the test cases Pod::Html breaks and fails to write HTML from valid pod if the strings Pod::Html or pod2html appear seemingly anywhere in the source code. Raw call, in a quoted string or print, even in comments! Why is it so? I have RTFS and have NFI. It is system dependent as it occurs running under Free BSD but not Win32. Although not shown above I locally installed exactly the same version of Pod::Html used on Win32 on the Free BSD system and the problem still remains. cheers tachyon s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
Back to
Seekers of Perl Wisdom
|
|