Because I didn't RTFM, because I reinvented the wheel, because I used a bunch of shoddy workarounds, because yes that is a magic number, because that comment made sense ten versions ago but now it's just confusing gibberish and I'm to lazy to update it, because I didn't properly use Google or PM Super Search, because I didn't indent properly, because I used "or/and" instead of "||/&&", because I told myself "I'll clean that up later", because I didn't properly listen and understand what the other monks told me, because I decided to do it quickly instead of correctly, and because I stubbornly refused to learn how to use the module that would just do that correctly for me every time in favor of doing the code equivalent of insisting on screwing together IKEA furniture using a coin from my pocket just so I don't have to walk 10 feet to the closet to get a screwdriver...

...Oh, yes, and because I'm an idiot. :-)

Just another Perl hooker - My clients appreciate that I keep my code clean but my comments dirty.

In reply to Re: My code is most likely broken because: by perldigious
in thread My code is most likely broken because: by Eily

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.