Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Help - I trying to use a sleep in a while loop and run I the program it just hangs:
#!/usr/bin/perl -w while(1){ #..do something sleep(10); }
I know I'm doing something daft, what is it ??
Thanks
Edited: ~Mon Aug 5 16:12:50 2002 (GMT) by footpad: Added <code> and other HTML formatting tags, per Consideration.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sleep in while loop
by Abigail-II (Bishop) on Aug 05, 2002 at 15:44 UTC | |
by Anonymous Monk on Aug 05, 2002 at 16:00 UTC | |
by Shendal (Hermit) on Aug 05, 2002 at 16:06 UTC | |
by Anonymous Monk on Aug 05, 2002 at 16:10 UTC | |
|
Re: sleep in while loop
by krisahoch (Deacon) on Aug 05, 2002 at 16:06 UTC | |
by krisahoch (Deacon) on Aug 05, 2002 at 16:08 UTC | |
by choeppner (Pilgrim) on Aug 06, 2002 at 14:11 UTC | |
by demerphq (Chancellor) on Aug 05, 2002 at 16:30 UTC | |
|
Re: sleep in while loop
by arturo (Vicar) on Aug 05, 2002 at 16:11 UTC | |
|
Re: sleep in while loop
by Anonymous Monk on Aug 05, 2002 at 16:26 UTC |