never do i hear why one can't use a CPAN module.

In this case it's not me, it's my friend. They want a quick solution to their problem, and their problem is cause by this particular thing, the library, which is embedded in their code. I could advise them to do it another way, but they really wouldn't.

I promise to install CPAN modules where possible.

OK your advice was very greatefully received:

Surely you mean something like:

open( T, "|/path/to/txt2html.pl -l /path/to/.txt2html.dict" );

Yes, thanks for that. And thanks for your code. I uploaded it and ran it, and it worked.

All I really want to do is tweak the regexes inside this script so that it doesn't attempt to find list items and convert them, and leave it in place in the rather awful structure it's in. So I wanted to install/use it so that I could test my regexes.
--

($_='jjjuuusssttt annootthheer pppeeerrrlll haaaccckkeer')=~y/a-z//s;print;

In reply to Re: (jeffa) Re: txt2html by Cody Pendant
in thread What is txt2html and how does it work? by Cody Pendant

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.