in reply to Re: array element return syntax
in thread array element return syntax

And the slice "equivalent" would be
my ($y, $m, $d) = @{[localtime(time)]}[ 5, 4, 3 ];

These construct an array, which makes them slower.