Tie::File::Indexed::FreezeN - tied array access to indexed data files: Storable::nfreeze()-encoded references (network byte-order)
use Tie::File::Indexed::FreezeN; tie(my @data, 'Tie::File::Indexed::FreezeN', $filename, %options) or die ... ##-- add some data $data[0] = {foo=>'bar'}; # transparently encode/decode perl hashes $data[1] = [1..10]; # ... or arrays $data[2] = \42; # ... or scalar-refs $data[3] = undef; # ... or undef print $data[1]; # retrieve & print a stored value
Tie::File::Indexed::Freeze provides a Tie::File::Indexed subclass for storing arrays of perl data structures encoded using the Storable module. Data items are written in the "network" byte-order using Storable::nfreeze().
See "SUBCLASSES" in Tie::File::Indexed for an overview of the built-in Tie::File::Indexed subclasses.
See "CAVEATS" in Tie::File::Indexed for general issues regarding the Tie::File::Indexed base class.
See "In-place item modification not supported" in Tie::File::Indexed::JSON for details.
See "Limited datatype support" in Tie::File::Indexed::Storable for details.
Bryan Jurish <moocow@cpan.org>
Copyright (C) 2015 by Bryan Jurish
This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.20.2 or, at your option, any later version of Perl 5 you may have available.
To install Tie::File::Indexed, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tie::File::Indexed
CPAN shell
perl -MCPAN -e shell install Tie::File::Indexed
For more information on module installation, please visit the detailed CPAN module installation guide.