From my original post:
Note: I know modules are better for this purpose, but I need a solution that will work on other people's computers without installing a module. | [reply] |
I don't believe that because you posted a module you intend to install.
Which is the relevant difference that allows you to install the module you posted, but not HTML::Entities?
| [reply] |
I don't believe that because you posted a module you intend to install.
Excuse me?
Do you think I'm lying about trivial things like this for no reason?
I didn't post a module, I posted a script - the important difference being that I can integrate this script into a bigger perl script I'm writing by simply putting it in a sub, and users can just run my script and not worry about how it converts HTML to txt. If I were to use a module, I'd have to tell users to install the module (utterly unrealistic in the case of most users) or package the whole thing up with PAR::Packer, which can break quite easily. BTW the original solution I used was HTML::Entities and HTML::Strip, then packaging the whole thing with PAR::Packer. But then I realized that an executable made with PAR::Packer on Ubuntu 9.x may not run on 8.x and an OS X Snow Leopard executable may not run on Leopard or Tiger... so here I am rewriting the HTML converter for compatibility, and here you are not believing it all for some mysterious reason.
| [reply] |