in reply to Re: Reading files, skipping very long lines...
in thread Reading files, skipping very long lines...
Thanks for the advice...
I actually tried to do this (using read() instead of $/, but I don't think it will do basically the same). It works, but the problem, then, is time. I am processing the file in real time, and it was taking ages (literally!) to read that 380+Mb long line...
Better explained: a process inserts lines into a file, and I am processing it. Somehow, it inserts a 380+Mb long line, and I want to skip it, and wait for the next... Maybe going really low level and playing with IPC would do the trick... I gotta go now, but will think on it tomorrow...
Conclusion: the method works, but it's too slow... I need a way to skip the line completely, and wait for a new line to be inserted into the file. (I wanna croak my $brain)
Thanks for your help, fellow monks!
--
our $Perl6 is Fantastic;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Reading files, skipping very long lines...
by pjf (Curate) on Sep 30, 2005 at 01:03 UTC | |
|
Re^3: Reading files, skipping very long lines...
by Roy Johnson (Monsignor) on Sep 29, 2005 at 18:34 UTC | |
by rir (Vicar) on Sep 30, 2005 at 15:08 UTC | |
by Roy Johnson (Monsignor) on Sep 30, 2005 at 16:42 UTC | |
by rir (Vicar) on Sep 30, 2005 at 23:10 UTC | |
by Roy Johnson (Monsignor) on Oct 03, 2005 at 12:44 UTC | |
|
Re^3: Reading files, skipping very long lines...
by ForgotPasswordAgain (Vicar) on Sep 30, 2005 at 14:41 UTC |