What do you think how the code could be rewritten to avoid these warnings?
Use no warnings 'uninitialized';
in the inner scope where you do the arithmetics.
That tells the reader of your code knows exactly that the undef being interpreted as 0 is intentional. The effect of the "no warnings" is limited to the scope it is in, so there's no harm for the program as a whole.
In reply to Re: Convert time string to seconds
by moritz
in thread Convert time string to seconds
by Dirk80
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |