in reply to day of year

Here's a radical thought. Instead of just guessing, why not check the documentation for localtime.

$yday is the day of the year, in the range 0..364 (or 0..365 in leap years.)

Wasn't that simple?

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg