Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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:
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 making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2014-07-22 16:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (119 votes), past polls