Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by tobyink (Canon)
on Jul 02, 2020 at 09:08 UTC ( #11118798=note: print w/replies, xml ) Need Help??


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

Either use File::ShareDir as swl suggests, or if there's a one-to-one correspondence between modules and data (i.e. your module only needs one data file, and the data file will only be used by that one module) use a __DATA__ section.

Replies are listed 'Best First'.
Re^2: Where to put data that goes with a module?
by Marshall (Canon) on Jul 02, 2020 at 15:42 UTC
    Another option to allow essentially multiple DATA segments is Inline::Files

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2023-03-25 14:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?