Angel has asked for the wisdom of the Perl Monks concerning the following question:

I can have a page that needs to be generated in text for emails and for display on screen in HTML. Should I start in HTML and use HTML::Parser, Or in txt and look for module that does txt to html?

Angel
  • Comment on To start with HTML or Text that is the Question.

Replies are listed 'Best First'.
Re: To start with HTML or Text that is the Question.
by sauoq (Abbot) on Dec 19, 2002 at 23:54 UTC

    Start with HTML. Trying to figure out how to rationally insert tags into plain text isn't going to be easy.

    Better yet, use XML.

    -sauoq
    "My two cents aren't worth a dime.";
    
Re: To start with HTML or Text that is the Question.
by Aristotle (Chancellor) on Dec 20, 2002 at 00:43 UTC
    If you want to be able to produce sane plaintext output, chances are it lends itself to writing in POD. :)

    Makeshifts last the longest.