in reply to problem with le and gt
ok after just 5 seconds of looking at my code, a co-worker mentioned the problem was in the 'else' part of the code. yes i feel like an idiot.
my problem was perl was reporting back the line number of the 'if' and the error was about 20 lines down in the 'else' part.
/me chalks one up to experience.