http://qs321.pair.com?node_id=1207239


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 (Archbishop) on Jan 15, 2018 at 09:35 UTC