That's the one - not my proudest moment :). Yep - I put up no code in the beginning, asked "why is this statement not working", and expected the PM to help me. Give me a break, I was frustrated all to hell and had had absolutely no progress for a few hours. And bear in mind I didn't claim that the error was in someone else' code until I was absolutely sure it was.

I didn't follow up (post code where the error is repeatable) because A) Someone had already reported the problem, and B) I had already solved my problem thanks to another poster's solution.

Would the WTF database have helped me find this? I don't know - the only search terms I had available were "perl" and "database", which I'd expect would produce quite a long list of suggestions. But I'd hope that one of the first things I'd see is "try using trace()", which was the suggestion that ultimately led me to finding the bug.


PS. If the code is, in fact, as horrible as you say it is, I'd like to know what I can do to improve it (and by association, my whole programming style). Feel free to do it in a private message to avoid crowding this node (unless you want to maintain your Anonymous status, which is fair enough


In reply to Re: Re: Proposed WTF Database by jbeninger
in thread Proposed WTF Database by jbeninger

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.