Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: DBI messes up sleep

by pilcrow (Sexton)
on Sep 15, 2007 at 04:35 UTC ( [id://639137]=note: print w/replies, xml ) Need Help??


in reply to Re: DBI messes up sleep
in thread DBI messes up sleep

...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.)

-pilcrow

Replies are listed 'Best First'.
Re^3: DBI messes up sleep
by guha (Priest) on Sep 17, 2007 at 21:12 UTC

    I have to agree with bigmacbear that localtime is only called once per iteration. So the shown behaviour is as expected.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-19 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found