in reply to date subtraction
use HTTP::Date; print ( str2time($date1) - str2time($date2) ) / 3600; [download]