Mark_Galeck has asked for the wisdom of the Perl Monks concerning the following question:
This contradicts what I am seeing! If the file is growing and I do <LOG>, sometimes I will get a line that does not end in '\n', and then the next call will get the continuation of the line. Clearly the WRONG thing. I would think one needs to check for the end of the line, and if it is not '\n' then seek back to the beginning and then sleep, or something like that. Clearly Camel cannot be wrong. So I must be wrong. Where am I wrong?while (<LOG>) { grok($_); } sleep 15; seek LOG, 0, 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: why is Camel saying you can safely <> a growing file? (buffering)
by tye (Sage) on Jan 04, 2013 at 05:07 UTC | |
|
Re: why is Camel saying you can safely <> a growing file?
by Mark_Galeck (Novice) on Jan 04, 2013 at 05:29 UTC | |
by Anonymous Monk on Jan 04, 2013 at 07:27 UTC | |
|
Re: why is Camel saying you can safely <> a growing file?
by flexvault (Monsignor) on Jan 04, 2013 at 13:03 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |