dimar has asked for the wisdom of the Perl Monks concerning the following question:
print "Hello World"; sleep 2; print "Goodbye World"; sleep 2;
This is a very simple question about using 'sleep' to pause a 'DOS window'. Is there an alternative?
DESIRED BEHAVIOR: Open 'DOS window'; print "hello world", pause for a little; print 'goodbye world"; pause for a little, Close DOS window; DONE.
ACTUAL BEHAVIOR: Open 'DOS window'; DOS window remains blank; pause for a little; print "hello world"; print 'goodbye world"; Close DOS window immediately after printing, so fast that you cannot even see it; DONE.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: sleep on windows w activestate perl
by pizza_milkshake (Monk) on May 06, 2004 at 15:50 UTC | |
by Grygonos (Chaplain) on May 06, 2004 at 17:32 UTC | |
Re: sleep on windows w activestate perl
by davido (Cardinal) on May 06, 2004 at 17:40 UTC | |
Re: sleep on windows w activestate perl
by NetWallah (Canon) on May 06, 2004 at 22:07 UTC | |
Re: sleep on windows w activestate perl
by cyocum (Curate) on May 06, 2004 at 15:47 UTC |