Subject: | Convert this in a Data Package |
Apart from some utility functions, this is really just a data package, and your data can be easily and simply stored as YAML, so can I recomend you just convert it into a "real" Data::Package module?
You can either do this inside your main package, or in a Module::ThirdParty::Data child class like this.
(I've just cut and past from the Data::Package::Simple synopsis, substituted your the package name and added a version)
package Module::ThirdParty::Data;
use YAML 'thaw';
use base 'Data::Package::Simple';
use vars qw{$VERSION};
$VERSION = '0.02';
1;
__DATA__
foo: bar
this: that
children:
- one
- two
- three
- four
And if you have any problems using Data::Package, let me know.