in reply to Re: Help performing "random" access on very very large file
in thread Help performing "random" access on very very large file

Uhhhhmmmmm... no it don't! From the File::Tie man page:

I even remember looking at the source code for this module once to validate that statement. I used to think that the module loaded the whole file into memory but it doesn't.

However, there is a lot of overhead associated with File::Tie for certain operations. For instance I had some code once that looked something like:

# considering @ry was the tie'd array: my $last_line = $#ry + 1;
and found that if I visited that line multiple times it slowed my code way down. Just FWIW...


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg