shipping support data with CPAN dists

Oliver Gorwits oliver.gorwits at
Sat Apr 25 04:08:43 PDT 2009

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?


- --
Oliver Gorwits, Network and Telecommunications Group,
Oxford University Computing Services
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla -


More information about the MiltonKeynes-pm mailing list