Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^2: Timer subtraction

by Cristoforo (Curate)
on Jan 14, 2018 at 23:00 UTC ( #1207239=note: print w/replies, xml ) Need Help??

in reply to Re: Timer subtraction (updated)
in thread Timer subtraction

Hi haukex,

I was using your code and found a problem with different duration parameters.

my $first = "01:25:52:421"; my $last = "01:26:29:369";
For this example the seconds and milliseconds in the $last variable have lesser amounts than in the $first variable. The program hangs and will not complete. It only executes the first two print statements. The result should be 00:00:36:948.

I don't know what can be done to get the program to run to completion (and execute the third print).

I've been working on this for several days, reading the docs for DateTime::Format::Duration and can't find the answer there - maybe I don't understand it well.

Replies are listed 'Best First'.
Re^3: Timer subtraction
by haukex (Bishop) on Jan 15, 2018 at 09:35 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1207239]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2021-04-15 15:17 GMT
Find Nodes?
    Voting Booth?

    No recent polls found