Hi All,
Why I dont get a's printed with the code below?
+++
while(1)
{
print "a";
sleep 1;
}
+++
It works well if I print a newline with a, i.e
while(1)
{
print "a\n"; # newline with a
sleep 1;
}
Please help if
TapasranjanMohapatra [T], on Wednesday, February 9, 2005 at 19:47
(+0530) typed the following:
T> It works well if I print a newline with a, i.e
I hope it works without sleep 1, try that, and you will see the
answer.
--
...m8s, cu l8r, Brano.
["You should never go in there without a mongoos
On Wed, 9 Feb 2005, TapasranjanMohapatra wrote:
> Why I dont get a's printed with the code below?
Apparently it's an output buffering issue.
If you flush output, it works:
$ perl -e 'while(1){print"a";sleep 1}'
^C
$ perl -e '$|=1;while(1){print&quo
TapasranjanMohapatra ha scritto:
Hi All,
Why I dont get a's printed with the code below?
+++
while(1)
{
print "a";
sleep 1;
}
+++
It works well if I print a newline with a, i.e
while(1)
{
print "a\n"; # newline
- Original Message -
From: TapasranjanMohapatra <[EMAIL PROTECTED]>
Date: Wednesday, February 9, 2005 9:17 am
Subject: while(1){print "a"; sleep 1;}
> Hi All,
Hello,
>
> Why I dont get a's printed with the code below?
Works well on my system, are you su
-Original Message-
From: Chris Devers [mailto:[EMAIL PROTECTED]
Sent: Wed 2/9/2005 8:01 PM
To: TapasranjanMohapatra
Cc: Perl Beginners List
Subject:Re: while(1){print "a"; sleep 1;}
On Wed, 9 Feb 2005, TapasranjanMohapatra wrote:
> Why I dont get a