Tie::File::FixedRecLen is a Perl module that offers fixed length record support for Tie:File.
SYNOPSIS
# for typical read/write random access...
use Tie::File::FixedRecLen;
tie @array, 'Tie::File::FixedRecLen', $file, record_length => 20
or die ...;
# or for faster, sequential write-only use...
use Tie::File::FixedRecLen::Store;
tie @array, 'Tie::File::FixedRecLen::Store', $file, record_length => 20
or die ...;
Use Tie::File::FixedRecLen as a drop-in replacement to Tie::File in order to add support for fixed length records within your tied files. When tieing to a file, you must specify the length of a record in the file. This length does not include the record separator character(s).
Apart from the configuration parameters mentioned below, you should use Tie::File::FixedRecLen in just the same way as Tie::File. This module is designed to create files which are read/write compatible with Tie::File;
Please take just a minute to read the "CAVEATS" section, below.
There is an ancilliary module, Tie::File::FixedRecLen::Store, which provides a subset of the features of Tie::File::FixedRecLen. It is designed for fast, write-only, sequential data logging. More information is given in the "STORE MODULE" section, below.
Product's homepage
Requirements:
· Perl