I have a small sub-routine that takes an html page, and extracts the first n characters from it not counting the html tags. Then, it closes any tags remaining open because of the extraction.
I was using HTML::TokeParser version 2.37 and everything was working fine on my laptop with Perl 5.8.8. Well, on Dreamhost, the darn thing started causing segmentation fault.
So, I substituted TokeParser with HTML::TagParser, a much simpler, less ambitious, but pure-Perl module. Again, it works fine on my laptop, but causes segfaults on Dreamhost. Fwiw, Dreamhost is running Perl 5.8.4, which may or may not be the cause (I hope that is not the cause).
TagParser is a pure Perl module, so it should just work, as far as I understand. But, not so... What can I do to solve this?
Update: I just checked and Dreamhost does have HTML::TokeParser version 2.24 installed. Initially I was using their module, but when I got segfaults, I installed my own instance at version 2.37. Still the segfaults.
In reply to segmentation fault on HTML::TokeParser by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |