I always, always, always, always test my code before posting it. I think that any responsible monk should do the same, no matter how good you think you are (and I have seen other Saints post mistakes). Not testing your code might allow you to post it faster, which some see as an advantage because some days, to be honest, this place is more of a "who can answer it first" rather than "who can answer it best." Remember that higher experience indicates not only (hopefully) a good grasp of Perl, but more importantly, it indicates that someone has actual Free Time to spend on the site answering questions. Ok, I've diverged a bit. Perhaps this is the topic of another discussion. For the record, I usually reformat (there are notable exceptions*) and my guidelines are pretty much the same as japhy's above.

*Yes, it's the Worst Node Ever. Have *you* voted it down yet? :)


In reply to RE: On Testing and Formatting Code by turnstep
in thread On Testing and Formatting Code by jcwren

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.