You can view the code in my scratchpad.

Yes, I was able to do that. After clicking on your username, then on 'View Scratchpad'. I have two bones to pick with the use of 'look at my scratchpad' in posts: to begin with, I had to leave the current page to go look at the code. It took 2 clicks. Second of all, I fail to believe that your scratchpad is going to remain static. Once you remove that code from your scratchpad, users that come along this post later on will not have a chance to examine your code. This post will become more or less useless.

So what solution would satisfy me (since that's what I, as an internet user, demand :P) for this post and other posts in the future: use the <readmore> tags provided on this site. In this way, I won't have to leave the thread to look at the code, and I know that the code will not be removed at any time (unless the horrible NodeReaper I've been hearing about lately happens to not like your post. That NodeReaper seems like one scary dude...).


In reply to Re: Problem with an update subroutine by Coruscate
in thread Problem with an update subroutine by hbradshaw

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.