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

JD jdp at algoloma.com
Fri Jun 24 04:55:42 EDT 2011


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.


More information about the Ale mailing list