in reply to Re: printing element of anonymous array
in thread printing element of anonymous array
Just for TIMTOWTDI, Time::gmtime has been in core ~10 years longer:
use Time::gmtime; print gmtime->wday;
But there is a difference: Time::Piece's wday index is 1-based (1=Sunday) while gmtime and Time::gmtime's wday is 0-based (0=Sunday).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: printing element of anonymous array
by 1nickt (Canon) on Mar 04, 2018 at 17:24 UTC |