Not to be cruel, but:
  1. Code does not compile:
    perl -c sKore.pl
    syntax error at sKore.pl line 26, near ")
    {"
    sKore.pl had compilation errors.
  2. test in 26 needs to be "eq" and not "=="
  3. HTML is non-compliant
    • No <body> and </body> tags (required)
    • </html> tag appears before the intended bodycontent
    • Unquoted attributes (W30L for example)
    • Lacks a <!DOCTYPE ...and much more

But really more-to-the-point: what does this one-off code do to make life easier? AFAICS, nada.

By contrast, HTML:Template, MASON, and friends may actually be helpful to you. They'll certainly be worth the time you spend studying them... though perhaps only after you master html.

Update Formating, changed from <c>...</c> to <blockquote... around compilation error, etc.

In reply to Re: Create HTML files using perl on the fly by ww
in thread Create HTML files using perl on the fly by sKore

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.