Hiya Guys! Hope everyone is doign well. I had a quick question and am quite sure that the answer is pretty simple, but its just not coming to me right now -- I have a perl script which dumps out a bunch of HTML code. Now the thing is that a have a few functions which require the same code to be dumped and would like a way where I can just refer to a HTML file or a library-type of file which contains all this HTML code. Is something like this possible? Also, can this library-file have "$" signs so that when the perl code dishes it out, the "$" values are converted into values as per assigned by the script? Please do let me know if I'm not making any sense and I will try to explain it in more detail. Thanks in advance. SP

In reply to HTML dumping inside Perl script? by Anonymous Monk

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.