Ricardo SIGNES > Data-Hive-1.010 > Data::Hive::PathPacker

Download:
Data-Hive-1.010.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.010   Source   Latest Release: Data-Hive-1.011

NAME ^

Data::Hive::PathPacker - a thing that converts paths to strings and then back

VERSION ^

version 1.010

DESCRIPTION ^

Data::Hive::PathPacker classes are used by some Data::Hive::Store classes to convert hive paths to strings so that deep hives can be stored in flat storage.

Path packers must implement two methods:

METHODS ^

pack_path

  my $str = $packer->pack_path( \@path );

This method is passed an arrayref of path parts and returns a string to be used as a key in flat storage for the path.

unpack_path

  my $path_arrayref = $packer->unpack_path( $str );

This method is passed a string and returns an arrayref of path parts represented by the string.

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2006 by Hans Dieter Pearcey.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: