my ($y, $m, $d) = @{[localtime(time)]}[ 5, 4, 3 ];
These construct an array, which makes them slower.
In reply to Re^2: array element return syntax
by ikegami
in thread array element return syntax
by Lyndley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |