in reply to Buffered IO and un-intended slurping
I don't have a better answer for you than the one you already thought of--$/ getting undef'd--but it strikes me that with < 600MB, you'd get far better performance by slurping the whole file into memory.
If you loaded it into a scalar and then opened that scalar as a ram-file, you needn't change your existing code, but it would run perhaps 2 orders of magnitude or more, more quickly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Buffered IO and un-intended slurping
by Wiggins (Hermit) on Jan 02, 2010 at 14:25 UTC | |
by BrowserUk (Patriarch) on Jan 02, 2010 at 14:55 UTC |