Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Is there a way to retain the time in perldebug. my perl script runs for 30 hours. It is difficult to get up in the middle to check the status

in the output below, i have done a break at the line "connect to PT", but i checked this, only after 6 hours, so it started with the next statement with the current time. Can i retain the old time as in "connect to PT" for the next statement

Jun 10 11:47:20 [INFO ] connect to PT Jun 10 17:58:32 [TRACE] next Jun 10 17:58:32 [TRACE] next

This is required for a script with intermittent failures when connecting to PT. Means, if connect to PT passes, connect to next, and retain the old time, otherwise run time will be wrong after the script is completed

Replies are listed 'Best First'.
Re: [Q]perldebug time retain
by Laurent_R (Canon) on Jun 11, 2016 at 08:25 UTC
    I'm sorry, I don 't fully understand, can you please explain the relationship between perldebug and your need to "retain the time" (whatever that exactly means)? Is this need related to the debug mode?
Re: [Q]perldebug time retain
by $h4X4_|=73}{ (Monk) on Jun 11, 2016 at 09:37 UTC

    Yes you can retain information if you use a log or database to store the data. You need to show us code or maybe explain it in more detail for us to help you better.