shipping support data with CPAN dists

Oliver Gorwits oliver.gorwits at oucs.ox.ac.uk
Sat Apr 25 04:08:43 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi folks,

I'm working on a new Perl module which will be sent to the CPAN. The
module does some work using reference data, which I've currently got
in XML format.

I'd like to ship these XML files with the distribution so the
installed module can use them, but I don't know the best way to go
about this.

There are three or four XML files, which makes using __DATA__ a bit
impractical, plus I like having the separate XML files which can be
validated as I update them.

The only idea I have so far is to ship them in lib/.. and use a
FindBin hack to read them back. I'd rather have something portable,
and supported by say, Module::Install (which I use), but I couldn't
see such an option.

Any ideas to help me?

cheers,

- --
Oliver Gorwits, Network and Telecommunications Group,
Oxford University Computing Services
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ8u872NPq7pwWBt4RAhh8AKDMT058fi/otth1glj2XniR/5hXmwCgrEtg
/fnZASoWhhd+fpdRY3VCeNg=
=Ctmu
-----END PGP SIGNATURE-----


More information about the MiltonKeynes-pm mailing list