Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Where to put data that goes with a module?

by swl (Priest)
on Jul 02, 2020 at 04:36 UTC ( #11118781=note: print w/replies, xml ) Need Help??

in reply to Where to put data that goes with a module?

Have a look at File::ShareDir and File::ShareDir::Install.

  • Comment on Re: Where to put data that goes with a module?

Replies are listed 'Best First'.
Re^2: Where to put data that goes with a module?
by BillKSmith (Prior) on Jul 02, 2020 at 15:25 UTC
    I have been planning on asking a similar question. In my case, I have an old .pl script which I still occasionally find useful. It requires a large number of sound (.wav) files which it plays by passing their path to "Windows Media Player" with exec. (Because of changes to the Player, it only works reliably on Windows XP. I hope to fix that.) Your suggestion to use build tools to manage the sound files seems like overkill. I have never even attempted to use Makefile.PL and have had only limited success with Build.PL.

      Yes, it might well be overkill for many applications. If you have a standalone script that is not going onto CPAN then it's just as easy to add an adjacent data directory to an archive.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11118781]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2020-08-10 16:35 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (58 votes). Check out past polls.