"whileL.pl" 24 lines, 404 characters

I second cbu's comment: very unhelpful! If your example program is aimed at beginners, then even more unhelpful in spreading bad programming habits. In addition to what the other poster wrote, since we recommend people all the time not to try to reinvent the wheel risking to do so wrongly and to use CGI instead, you may want to do so. Even for such a tiny thing.

Since your code has already been rewritten in a better way, I'll comment on the title, which is also particularly unhelpful - "Simple Perl programme using":

As far as the first two points are concerned, I understand that English may not be your mother tongue: neither is it mine, but special care should be applied at least when composing titles, if not all the rest. As for the second, that pov is often associated with stuff that gives Perl a bad name so it is generally deprecated amongst Perl programmers: granted, it's better tolerated here than elsewhere, but it is still wrong.


In reply to Re: Simple Perl programme using by blazar
in thread Reaped: Simple Perl programme using by NodeReaper

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.