Re: Using "Sleep "
From: Eric Bohlman (ebohlman_at_omsdev.com)
Date: 09/09/04
- Next message: Peng Yue: "Re: perl open function for size bigger than 2 Gig"
- Previous message: Uri Guttman: "Re: Socket holding pattern"
- In reply to: George Kinley: "Using "Sleep ""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 9 Sep 2004 13:58:11 GMT
"George Kinley" <georgekinley@hotmail.com> wrote in
news:vCY%c.24967$k4.485279@news1.nokia.com:
> for(;;)
> {
> print "a";
> sleep (1);
> }
>
> The above script does not print any thing on console , till I modify
> it like
>
> for(;;)
> {
> print "a\n";
> sleep (1);
>
> }
> why?
Output buffering. perldoc -q flush will give you the detailed answer and
the appropriate workaround.
- Next message: Peng Yue: "Re: perl open function for size bigger than 2 Gig"
- Previous message: Uri Guttman: "Re: Socket holding pattern"
- In reply to: George Kinley: "Using "Sleep ""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|