in reply to localtime shows array reference
You're using Time::localtime somewhere, and that is turning the results of localtime into an object.
Also note it is redundant to pass time as a parameter to localtime.
use Time::localtime; print "Object: ", join(' ', localtime), "\n"; print "Array: ", join(' ', CORE::localtime), "\n";
By the way, to determine this all you needed to do was google Time::tm. The results promisingly return perldoc Time::tm which documents that it is a base class of Time::localtime and Time::gmtime.
|
|---|