[ale] POSSIBLE-SPAM-Re: stupid perl question

Chris Fowler cfowler at outpostsentinel.com
Fri Jun 24 07:58:05 EDT 2011


On Fri, 2011-06-24 at 04:55 -0400, JD wrote:
> On 06/23/2011 07:27 PM, Chris Fowler wrote:
> > On Thu, 2011-06-23 at 16:02 -0700, Steven A. DuChene wrote:
> >> I am attempting to do a "tail -f" on a log file that has a new line added to it every 15 seconds.
> >> I need to parse and process each new line as it is added to the file.
> >>
> >> I am trying to use the following example code from cpan to see if the basic concept will
> >> work using File::Tail but when I run the example code below and add lines to the file
> >> I get nothing out.
> >>
> 
> <snip>
> 
> > 
> > $|;
> 
> Just to clarify, perl buffers output by default, so the "$|" disables
> buffering. Usually you don't want that, but sometimes, like in this
> case, you do.
> __

And I forgot that he should do $| = 1;





More information about the Ale mailing list