Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

(Guildenstern) Rex4: sleep?

by Guildenstern (Deacon)
on Mar 21, 2001 at 01:53 UTC ( #65838=note: print w/replies, xml ) Need Help??


in reply to Re: (Guildenstern) Re: Re: sleep?
in thread sleep?

Yes, but this is a simple example and does not use any loop control statements. myocom stated in his reply that the while(sleep(1)) construct would sleep first before showing any output - the opposite of what the original author was trying to do in the sample code. In this case, the do {} while () is a perfectly acceptable WTDI.

Guildenstern
Negaterd character class uber alles!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2020-10-22 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (225 votes). Check out past polls.

    Notices?