I did a similar question recently: http://www.nntp.perl.org/group/perl.module-authors/2010/02/msg8235.html
The conclusion: Add any library, etc.. to directory 'share'. Use install_share 'share'; of Module::Install; to install this. Then used File::sharedir to recover these files. You can see at the structure of my module: http://cpansearch.perl.org/src/NES/Nes-1.00_04/ ________________________________ De: James E Keenan <jk...@verizon.net> Para: module-authors@perl.org Enviado: sáb,27 febrero, 2010 04:10 Asunto: Structure of a CPAN distribution: sample .pl files; .tar.gz for use in testing Two questions related to the directory structure of a distribution intended for CPAN: 1. What is the current best practice for including sample Perl 5 programs intended to illustrate usage of the module? What directory should they be placed in? 2. Is it possible to include another archive file in a CPAN distribution and not have it interfere with the normal operations of the distribution? Example: I have a subroutine which has to gracefully handle certain .tar.gz files that have a non-standard directory structure. I want this tarball to be available for use in my t/*.t tests, but I don't want it to be decompressed when a user says 'gunzip' or 'tar' (or when 'make' does something).