First off, to the AM: add use strict; to this and every script you write (assuming you aren't stuck with some ancient Perl 4 install) -- you will catch some errors that way.

Rass, this is clearly labelled home work (this time at least), which is honest. This person didn't simply copy their assignment into a node and ask the Monks to write the script, they gave a sample of their buggy code and asked for assistance. The responses don't provide corrected scripts, they provide small bits, direction and hints. Let's not label every AM a troll who hasn't quite gotten the hang of the PM interface and accidentally resubmits questions, or resubmits after he/she sees that his/her question has disappeared because it was reaped. Of course, I missed the entire CB discussion on this (some monks even browse the site with CB turned off), so maybe I'm out of line, but this SOPW looks fairly legitimate to me.

In reply to (ichimunki) Re: home work help by ichimunki
in thread home work help 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.