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

Re: My preferred way of handling config data in Perl is:

by pajout (Curate)
on Dec 20, 2006 at 14:32 UTC ( #590911=note: print w/ replies, xml ) Need Help??


in reply to My preferred way of handling config data in Perl is:

I prefer this way, upper has higher priority:

  • command line arguments
  • %ENV
  • file configuration (it means XML for me)
  • hardcoded defaults
Mixing these options gives me desired flexibility.

The other practice, which I use sometimes, is to treat relative paths as relative to real location of the executed file (excluding mod_perl cases).


Comment on Re: My preferred way of handling config data in Perl is:
Replies are listed 'Best First'.
Re^2: My preferred way of handling config data in Perl is:
by syphilis (Canon) on Dec 20, 2006 at 14:37 UTC
    The other practice

    No way that I am prepared to discuss my "other practice" on a public forum :-)

    Cheers,
    Rob

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2015-08-01 03:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls