in reply to Number of day in the year to proper date
Don't reinvent the wheel :)
use Date::Manip; print UnixDate( ParseDate("2008-273"), "%Y/%m/%d %A\n"); [download]