in reply to Re: The day of today
in thread The day of today

If you are happy to dispense with the array you can do this.

use strict; use warnings; print "today is day @{ [ ( localtime )[3] ] }.";

Cheers,

JohnGG