in reply to Comparing a Hash key with a variable (if statement)

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.

  • Comment on Re: Comparing a Hash key with a variable (if statement)