Tie::StorableDir - Perl extension for tying directories with Storable files


Tie-StorableDir documentation  | view source Contained in the Tie-StorableDir distribution.

Index


NAME

Top

Tie::StorableDir - Perl extension for tying directories with Storable files

SYNOPSIS

Top

  use Tie::StorableDir;

  tie %hash, 'Tie::StorableDir', dirname => 'foo/';
  $hash{foo} = 42;

DESCRIPTION

Top

Tie::StorableDir is a module which ties hashes to a backing directory containing Storable.pm files. Any basic perl data type can be stored. Values retrieved from the hash are tied so changes will be written back either when all references to values under a key are removed, or the main hash is untied.

ON-DISK FORMAT

Top

Each value in the hash is stored in a file under the directory passed as 'dirname' to tie, with a filename derived from the key as follows:

 * Prepend 'k'
 * Replace characters outside the set [a-zA-Z0-9. -] with _(hex code)

The format of the files themselves is that of a reference to the scalar value, serialized by Storable::store.

BUGS AND CAVEATS

Top

AUTHOR

Top

Bryan Donlan, <bdonlan@gmail.com>

SEE ALSO

Top

Storable, perltie

COPYRIGHT AND LICENSE

Top


Tie-StorableDir documentation  | view source Contained in the Tie-StorableDir distribution.