Search code examples
perlcpan

Non Perl files that need to be installed with CPAN distribution?


I need to have files installed with my CPAN dist that aren't Perl. Where in the dist should I put them? and what's the best way to reference them from within a module so that I have access to them regardless of users configuration?


Solution

  • Well, you're not very clear on what these files are and how they're used, but you're probably looking for File::ShareDir.

    File::ShareDir only takes care of the run-time access to the files from your module. The way you get the files installed along with your module depends on which install system you use: