# Tie::MmapArray # Copyright (C) 1999 Ford & Mason Ltd. All rights reserved. # You may use this software under the same terms as Perl. package Tie::MmapArray; $VERSION = '0.04'; use strict; use vars qw($VERSION @ISA); require DynaLoader; @ISA = qw(DynaLoader); bootstrap Tie::MmapArray $VERSION; 1; __END__ =head1 NAME Tie::MmapArray - mmap a file as a tied array =head1 SYNOPSIS use Tie::MmapArray; tie @array, 'Tie::MmapArray', $filename; tie @array, 'Tie::MmapArray', $filename, $template; tie @array, 'Tie::MmapArray', $filename, { template => $template, nels => 0, mode => "rw", shared => 1, offset => 0 }; $len = (tied @array)->record_size; =head1 DESCRIPTION The Tie::MmapArray module lets you use mmap to map in a file as a perl array rather than reading the file into dynamically allocated memory. It depends on your operating system supporting UNIX or POSIX.1b mmap, of course. (Code to use the equivalent functions on Win32 platforms has been contributed but has not been tested yet.) The type of array elements is defined by the I