prad_intel has asked for the wisdom of the Perl Monks concerning the following question:
the output i desired is processing.(one second sleep).(one second sleep).(one second sleep).(one second sleep).(one second sleep). but the output is#!/usr/bin/perl -w print "processing."; for($i=0;$i<=5;++$i){ print "."; sleep 1; }
(5 seconds sleep)processing........
Then i tried .... trial 2This gives the output ... processing.. (one second). (one second). (one second). (one second). (one second). Could you please tell me where did i go wrong in sleep-ing ? Advance thanks and regards Prad#!/usr/bin/perl -w print "processing."; for($i=0;$i<=5;++$i){ print ".\n"; sleep 1; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: sleep problem !
by rnahi (Curate) on Sep 22, 2005 at 09:50 UTC | |
Re: sleep problem !
by marto (Cardinal) on Sep 22, 2005 at 09:49 UTC | |
Re: sleep problem !
by svenXY (Deacon) on Sep 22, 2005 at 09:55 UTC | |
Re: sleep problem !
by gri6507 (Deacon) on Sep 22, 2005 at 13:22 UTC | |
Re: sleep problem !
by Anonymous Monk on Sep 22, 2005 at 09:51 UTC | |
Re: sleep problem !
by radiantmatrix (Parson) on Sep 22, 2005 at 14:58 UTC | |
by prad_intel (Monk) on Sep 23, 2005 at 04:13 UTC | |
by Skeeve (Parson) on Sep 23, 2005 at 11:25 UTC |