Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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.

E.G.

  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.

--Pileofrogs

Log In?
Username:
Password:

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

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












    Results (74 votes). Check out past polls.

    Notices?