in reply to How to get the elements of gmtime() using Time::gmtime?
Have you read the documentation of Time::gmtime? It returns a blessed Time::tm object, which is stringified when you print it.
To obtain what you want, use the methods provided by the object, as in:
use Time::gmtime; my $tm = gmtime(); print $tm->sec; print $tm->min; # etc...
Read perldoc Time::gmtime, all the info you need is in it.
|
|---|