in reply to d-mmm-yyyy to DOY (day of year)
print Time::Piece->strptime($date_str, "%d-%b-%Y")->yday(),"\n"; [download]