in reply to Re^3: hash question..
in thread hash question..

toolic: I do use warnings;use strict Well it turns out to be even simpler than that. When I was reading from the flat files, (using substr), I somehow have spaces in my key. Thus I was not able to find a match.

I was not able to see the spaces but when I did (something similiar to what SuicideJunkie suggested.)
print "{$line[3]}";
I noticed the spaces and that explained why I was not able to have my if statement be satisfied.

Thanks for all the help and time to everyone!!