Is it possible to pass timelocal a parameter that's already the exact
scalar output of localtime's format "Mon Jan 10 04:30:30 2007"?

I know the perlfunc documentations for timelocal indicates that
arguments are in the form of ...

timelocal($seconds, $minutes, $hours, $day, $month, $year)

but I have a logfile with the above time format & want to know if
there's an easier way of reading that entry & pass it to timelocal so
as to get the epoch time.
So far I can only think of using regex as the best solution but any
smarter solution will be happily appreciated.

Thanks in advance.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to