RSS | Module Info | Add a review of File-Map

6 out of 6 found this review helpful:

File-Map (0.23) ****

Traditionally, programs read information from a file by opening a file handle, reading data into memory, then closing the file handle. This module takes a different approach: it provides a scalar variable that magically corresponds to a file's content on disk without reading any new data into memory.

If you find yourself working with files of large or unknown size, this module saves you having to worry about the memory that perl might allocate.

Behind the scenes, the module uses mmap on Unix to do its magic. The module uses similar facilities on Windows and VMS, making it portable to most platforms that Perl developers often use.

I like this module because it combines the easiness of File::Slurp (or setting $/ to undef for those who like minimal dependencies) and the efficiency of other interfaces to mmap, such as Sys::Mmap, along with the benefit of better portability.

Tom Hukins - 2010-03-08T07:51:45

Was this review helpful to you?  Yes No
4 out of 9 found this review helpful:

File-Map (0.19) ****

The import interface is wonky (why make people write a bunch of ":foo"?), but this module is heading in the right direction.

Pista Palo - 2009-11-08T21:41:03

Was this review helpful to you?  Yes No


the camel