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.
In reply to sleep on windows w activestate perl by dimar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |