I downloaded all the Everything Engine files from SourceForge and poked around a bit.

I opened up first what appears to be the most recent build available.

It contains:

package Everything::HTML; ###################################################################### +####### # # Everything::HTML.pm # # Copyright 1999,2000 Everything Development Company # # A module for the HTML stuff in Everything. This # takes care of CGI, cookies, and the basic HTML # front end. # ###################################################################### +####### use strict; use Everything; use Everything::MAIL; use CGI; use CGI::Carp qw(fatalsToBrowser);

I, of course, have no way of knowing if this has been changed or updated on PerlMonks to use something other than CGI.pm but the majority of older Perl programs did. Apparently the Everything Engine is no different.

I never did like CGI.pm. Too bloated for the simple message board scripts I wrote.

Also I wanted more control. It was easier just to write my own code from scratch for that.

But, if it is still what PerlMonks has running on the back-end for handling CGI, some scripts,
possibly some versions of CGI.pm use something like $value =~ s/\n/ /g; replacing the newline character with whitespace, globally. So instead of converting to HTML the return is converted to a space.

Instead, do something like $value =~ s/\n/<br \/>\n/g;

Tom


In reply to Re^10: Making Perl Monks a better place for newbies (and others) by PerlGuy(Tom)
in thread Making Perl Monks a better place for newbies (and others) by ELISHEVA

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.