|We don't bite newbies here... much|
Re: How to distribute an example data file in a CPAN moduleby jplindstrom (Monsignor)
|on Feb 20, 2009 at 00:58 UTC||Need Help??|
I think SQLite db files are binary cross platform, but possibly not across versions. I guess you'd have to check the SQLite manual for that.
That does sound a bit fragile in any case, so the DDL might be a more solid choice.
You can put data files next to where your module source gets installed. Find out where that is:
If you use Module::Build, you need to specify that nonstandard file extensions should be packaged, like this:
Not sure about the EMM or Module::Install incantations.
So you'll need to create a .db file in a convenient (for the user) writable location. File::HomeDir might be useful for finding that location.