NAME

Data::Package::Simple - Implement simple data packages based on freeze/thaw formats

SYNOPSIS

# A complete cut-and-paste package that loads data stored
# as YAML from the end of the file.
package My::Data;

use YAML 'thaw';

use base 'Data::Package::Simple';

use vars qw{$VERSION};
$VERSION = '0.01';

1;

__DATA__
Your: data
goes: here
children:
  - your
  - two
  - three
  - etc etc etc

DESCRIPTION

Data::Package::Simple is designed to add a DWIM layer on top of Data::Package to allow you to create basic but proper data packages quickly and easily.

The intention is that it will provide a "first implementation" which may or may not migrate to a more complex package at a later date.

You can use a ::Simple data package in your initial implementations, and then upgrade it at any point in the future without having to change the code that uses it.

The ::Simple class is designed to take advantage of the standard freeze/thaw module used for data serialization by modules such as Storable or YAML.

etc etc...

METHODS

SUPPORT

Bugs should always be submitted via the CPAN bug tracker

http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Data-Package

For other issues, contact the maintainer

AUTHOR

Adam Kennedy (Maintainer), http://ali.as/, cpan@ali.as

COPYRIGHT

Copyright (c) 2005 Adam Kennedy. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.