I ran into a baffling problem today I'm hoping someone else has some enlightment to share.

I developed a module that is a subclass of HTML::Parser. It works like a charm on my Mac (OS X 1.2). When I move it to a Linux server nothing gets returned -- no error messages, no contents returned. In debugging why it fails in one place and not the other I found that the start, end and text handlers are not being called. The start document does seem to get called. The linux server that is failing is running 3.25. My Mac was running 3.28. I just upgraded to 3.34. The script works fine with both. Both my Mac and the Linux server are running Perl 5.6.1. I also tried another Linux server I had access to and it worked fine there -- version 3.26.

What's most baffling is that a not an error message is generated to give me a hint.

I don't see anything in the change history that would indicate a bug that is creating this occurance. Obviously upgrade to the latest version is a logical choice, but I'm doing this work for a client and may not have the option of upgrading. I thought it wise to look into it completely. I'm concerned that this issue will rear its ugly head later.

All thoughts appreciated. Thanks.


In reply to HTML::Parser - no contents. no error. by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.