jayu_rao has asked for the wisdom of the Perl Monks concerning the following question:
I am a newbie to PERL and need help in string extraction from a line within a file. I have a file which has start of a process that starts a JVM and the log file has an entry like:
----- Sun Mar 8 10:51:20 2015::4426::Launching the JVM with following options.
There could be multiple entries like this since the log file is appended for each start of the application. I need to extract only the timestamp from the last attempt of start from this file to a variable and export it to do another matching in another file. Can you please help with it?
In addition, I need to convert this to the format "yyyy-mm-dd hh24:mi:ss and then export it. Will ParseDate in Date::Manip be able to help in this case?
Regards,Jay
|
---|