Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Where should a module's static datafile reside?

by AidanLee (Chaplain)
on Aug 25, 2001 at 03:35 UTC ( #107762=note: print w/replies, xml ) Need Help??


in reply to Where should a module's static datafile reside?

If your data has no use outside the module it's tied to, place it somewhere nearby under $PERL5LIB. If the data has a life beyond interacting with your module (or if your module has a life beyond acting on this one data file), I would recommend keeping it out of your library hierarchy all together, and feeding it's location to your module (rather than hard coding it).

For my own projects I tend to do this:

Projects/
    MyProject/
        lib/   <-- project specific modules
        bin/   <-- project scripts
        data/  <-- project datafiles
M2C
  • Comment on Re: Where should a module's static datafile reside?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2022-01-18 13:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (53 votes). Check out past polls.

    Notices?