The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

SPOPSx::Tool::HashField - A SPOPS extension allowing for the storage of Perl hashes

SYNOPSIS

  %conf = (
      table_alias => {
          # ...
          hash_fields => [ qw/ arguments locals results / ],
          # ...
      }
  );

DESCRIPTION

NOTE: This module will probably be made more general and extracted into its own distribution at some point.

This allows for the storage of Perl hashes in a database field. This uses YAML to perform the marshalling and unmarshalling. This is handy because you can use third-party tools to update the stored hashes with relative ease and the hashes are readable even in other languages that have a YAML model. Only the top level needs to be a hash. The data structure can be arbritraily deep.

SEE ALSO

SPOPS, YAML

AUTHOR

Andrew Sterling Hanenkamp, <hanenkamp@users.sourceforge.net>

COPYRIGHT AND LICENSE

Copyright 2005 Andrew Sterling Hanenkamp. All Rights Reserved.

Contentment is distributed and licensed under the same terms as Perl itself.