Adrian Howard wrote:
On 18 Apr 2005, at 17:03, David Cantrell wrote:
Number::Phone::UK::Data - no version, this is where the .0004 comes from though. It has no version number because the entire file is generated from a *really* dumb script
I agree with Schwern that there is no correct :-) However, if it were me, I would generate a version number along with the module (seeded from the version number of the generating script.)
The script that generates it doesn't change. The data that it mangles into a module is the bit that changes.
I don't know if this applies, but you may want to split the data out into a seperate package and implement it using something like Data::Package to abstract the data storage from the use of it.
Some time down the line I'm hoping to add Data::Managed to the Data::Package dist, which will let installing packages register that they are a data package that needs to be updated at XXXX intervals.
Data::Managed would come with a script to update all registered data packages on a regular basis.
Just a thought. I'm getting sick of seeing super-sized perl modules in CPAN that are nothing more than data showhorned into perl structures.
The worst examples are things like the Arial font in PDF::API2 included in the form of a 2.8meg Perl module.
Data::Package should provide a useful way to abstract out the data from it's use.
ugh
Adam K