Skip Menu |

This queue is for tickets about the Module-ThirdParty CPAN distribution.

Report information
The Basics
Id: 12146
Status: resolved
Priority: 0/
Queue: Module-ThirdParty

People
Owner: Nobody in particular
Requestors: cpan [...] ali.as
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.01
Fixed in: (no value)



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.
[ADAMK - Tue Apr 5 07:46:33 2005]: Show quoted text
> 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?
Thanks for the suggestion, but I don't see the benefits of using Data::Package in this case. Regards -- Close the world, txEn eht nepO.