Wassercrats has asked for the wisdom of the Perl Monks concerning the following question:
Then the new entry is added. I don't know if it's a good idea to do things this way, but that's not my main concern. My main concern is that an image that's supposed to be printed in the beginning of the script (code not shown), isn't printed until AFTER the do-nothing loop. Without the loop, it's printed alot faster. How can I have the image be displayed and THEN have a delay? Am I just hallucinating?open(IN, $logfile); @file = <IN>; close IN; if(@file != "") { for ($count=1; $count<9999999; $count++) {} open(LOG, ">$logfile"); print LOG ""; close (LOG) };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Do-nothing loops
by chromatic (Archbishop) on Mar 16, 2002 at 05:05 UTC | |
|
Re: Do-nothing loops
by tachyon (Chancellor) on Mar 16, 2002 at 11:00 UTC | |
| |
| |
|
Re: Do-nothing loops
by theguvnor (Chaplain) on Mar 16, 2002 at 05:15 UTC | |
by jryan (Vicar) on Mar 16, 2002 at 07:26 UTC | |
by Juerd (Abbot) on Mar 16, 2002 at 09:46 UTC | |
by jryan (Vicar) on Mar 17, 2002 at 03:27 UTC | |
by blakem (Monsignor) on Mar 17, 2002 at 10:21 UTC | |
|
Re: Do-nothing loops
by erikharrison (Deacon) on Mar 16, 2002 at 05:58 UTC | |
| |
| |
| |
|
Re: Do-nothing loops
by tmiklas (Hermit) on Mar 16, 2002 at 12:35 UTC | |
|
somewhat related.. (OT)
by archen (Pilgrim) on Mar 17, 2002 at 03:27 UTC | |
|