in reply to Need to optimize my perl code

Might want to try Date::Calc for taking care of the time comparisons/calcs....
  • ...the majority is always wrong, and always the last to know about it...
  • The Spice must flow...
  • ..by my will, and by will alone.. I set my mind in motion