Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
open ENSTAIL, "tail +0 -f $ENS_LOG |"; while ( not $done ) { eval { alarm 60; $$line = <ENSTAIL>; alarm 0; }; if ($@) { if ( finishedReading() ) { close ENSTAIL; # BLOCKED! $done = 1; } } process( $line ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: blocked close filehandle
by merlyn (Sage) on Oct 16, 2000 at 00:58 UTC | |
by extremely (Priest) on Oct 16, 2000 at 01:37 UTC | |
by Anonymous Monk on Oct 16, 2000 at 02:26 UTC | |
|
RE: blocked close filehandle
by runrig (Abbot) on Oct 16, 2000 at 03:54 UTC |