Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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 (Chancellor) 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