Have you thought of adding else statements to all your if statements? If you do that, and print there that some element does not match some condition, then maybe you will find why your loop gets skipped. Also consider printing the strings that you hand to eval and also check that your eval statement does not raise any errors. See perlvar for $@.
Of course, if you provided a short, self-contained valid program instead of pasted-together snippets that provide a key-hole view of your program, it would be far easier for me to try and replicate your problem. I recommend hard-coding values instead of reading those values from external files. Please try to make your code 20 or 25 lines maximum.
In reply to Re: Comparing a Hash key with a variable (if statement)
by Corion
in thread Comparing a Hash key with a variable (if statement)
by dkhalfe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |