in reply to printing element of anonymous array

The outer parentheses are being grabbed by the print function. You need
perl -e 'print ((gmtime(time))[6]);'

PS - technically, it's a list, not an anonymous array, being returned by gmtime.

Dave.