Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

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

by runrig (Abbot)
on Aug 26, 2001 at 05:58 UTC ( [id://107880]=note: print w/replies, xml ) Need Help??


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

Its all a matter of opinion, of course, but mine is to put the file in the same directory or a sub directory as the module (maybe a subdirectory so the search path is not as cluttered as Zaxo suggests). Then its easy to find the file by parsing the path out of the __FILE__ variable.

I think there's plenty of examples of config and data files under the @INC directories, another won't hurt.

  • 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://107880]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-19 08:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found