Data::Hive::PathPacker - a thing that converts paths to strings and then back
version 1.015
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:
This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.
Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.
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.
my $path_arrayref = $packer->unpack_path( $str );
This method is passed a string and returns an arrayref of path parts represented by the string.
Hans Dieter Pearcey <hdp@cpan.org>
Ricardo Signes <cpan@semiotic.systems>
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.
To install Data::Hive, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Hive
CPAN shell
perl -MCPAN -e shell install Data::Hive
For more information on module installation, please visit the detailed CPAN module installation guide.