in reply to Re: How do I backtrack while reading a file line-by-line?
in thread How do I backtrack while reading a file line-by-line?
That section on memory usage is very misleading. Tie::File keeps the index of every encountered lines (i.e. every lines up to the highest one read/written) in memory. In other words, if you do $tied[-1] or push @tied, ..., the index of every line in the file is loaded into memory (if they haven't already been loaded).
Tie::File is still a very useful module.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How do I backtrack while reading a file line-by-line?
by grep (Monsignor) on Oct 13, 2006 at 21:26 UTC | |
by ikegami (Patriarch) on Oct 14, 2006 at 07:26 UTC |