...you only actually check the time once, in the very first statement in the loop...
No, localtime is called for each of many loop iterations, as you'll see if you inspect the sample output or re-examine (or run) the code.
(I, too, saw the OP's false and misleading "time after sleep" print statement, and initially thought as did you.)
-pilcrowIn reply to Re^2: DBI messes up sleep
by pilcrow
in thread DBI messes up sleep
by perljunky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |