Link to home
Start Free TrialLog in
Avatar of sn8776
sn8776

asked on

problem with localtime

local($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime;

I tried the code line above.
but all I got is just something like
  $sec=Time::tmARRAY(...)

What is wrong about this ?
Avatar of b2pi
b2pi
Flag of United States of America image

There's more to what's going on than what you're showing us.... however, in the first place, use

my($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime;


What else is in your code.... Ulpp.  You could also be using an ancient ActiveState
ASKER CERTIFIED SOLUTION
Avatar of spreq
spreq
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ozo
local($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime;
ought to work too. why do you believe you got something like $sec=Time::tmARRAY(...)?
Avatar of sn8776
sn8776

ASKER

Solved ... anyway thanks u all.