>= Original Message From "Balint, Jess" <[EMAIL PROTECTED]> =
>Hello. What is wrong with this?
>
>perl -e 'for(1..300){sleep 1;print ".";}'
>
>It never prints anything.
>Thanks.
I wrote a script like this:
for (1..5) {
sleep 1;
print ".";
}
when i ran it, i timed it. it took
On Jul 23, Balint, Jess said:
>Is there a command line switch for that?
To automatically place a newline after every print(), use the -l switch.
--
Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/
RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan
STDOUT is line-buffered. either unbuffer it ($| = 1;) or use stderr
perl -e 'for(1..300){sleep 1;print STDERR ".";}'
On Tuesday, July 23, 2002, at 02:37 PM, Balint, Jess wrote:
> Hello. What is wrong with this?
>
> perl -e 'for(1..300){sleep 1;print ".";}'
>
> It never prints anything.
> Thank
Is there a command line switch for that?
-Original Message-
From: Nikola Janceski [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 2:50 PM
To: 'Balint, Jess'; '[EMAIL PROTECTED]'
Subject: RE: One Liner Problems
output is buffered.
try it like this
perl -e
output is buffered.
try it like this
perl -e 'for(1..300){sleep 1;print ".\n";}'
> -Original Message-
> From: Balint, Jess [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 2:37 PM
> To: '[EMAIL PROTECTED]'
> Subject: One Liner Pr
On Jul 23, Balint, Jess said:
>Hello. What is wrong with this?
>
>perl -e 'for(1..300){sleep 1;print ".";}'
>
>It never prints anything.
>Thanks.
Yes it does. It prints
".
Hello. What is wrong with this?
perl -e 'for(1..300){sleep 1;print ".";}'
It never prints anything.
Thanks.
Jess
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]