in reply to localtime shows array reference

Earlier in the program, you must have requested to override localtime with one that returns an object. You can access the builtin localtime using
my @timeData = CORE::localtime(time); print join(' ', @timeData);