in reply to Re^2: printing element of anonymous array
in thread printing element of anonymous array

True, but there's a reason Time::Piece was placed in core, and it ain't because Time::gmtime had feature bloat.

Besides the aforementioned wday(), which provides a one-indexed numerical value for the day of the week, Time::Piece also provides _wday() and day_of_week() for getting the zero-indexed value, as well as fullday() to get the full name of the day, and day() and wdayname() for an abbreviated version of the name.


The way forward always starts with a minimal test.