I empathize with your remark that "Please do not critique it too harshly, I am simply looking for a fix to my dilemna (in other words, I do not want to change a lot of my code). " Truly. Been there; done that.

But, it's not necessarily an attitude that serves your best interests.

At worst, if someone suggests an alternate to some or all of your script, you can take a look at how that works, and -- at least sometimes -- use your new knowledge to see what you need to do to make your approach work. Sure, some of the tips will wander far off the path you're beating, but if none of the replies you get, here in the Monastery, comes close to your approach, you may be getting an indication that your code if flawed, not just in detail, but fundamentally.

And, at best, as suggested above, you'll probably learn something, if you pay attention to the advice from the Monks, no matter how unpalatable it may be.


In reply to Re: Comparing a Hash key with a variable (if statement) by ww
in thread Comparing a Hash key with a variable (if statement) by dkhalfe

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.