Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Modules dealing with data files

by pileofrogs (Priest)
on Nov 10, 2006 at 23:53 UTC ( #583437=note: print w/replies, xml ) Need Help??

in reply to Modules dealing with data files

If I were doing something like this, I'd try and make my module try a number of tricks rather than only one.


  1. Look for recent data file from CPAN ala brian_d_foy's response above
  2. Failing that, try previous known-good file names
  3. Failing that, try guessing at file names based on any patterns you've recognised
  4. Failing that, ask the user
  5. ...etc...

This way, you have the known-good option first, but you also have a few fallbacks so users have some recourse if they're cut off from CPAN or you die in a car crash and can't update the file, or whatever.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2022-01-28 23:34 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (74 votes). Check out past polls.