Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://590911]
help
Chatterbox?
[Lady_Aleena]: I'm glad I've sort of learned command line grep so I can find where and how I've used this sub.
[Lady_Aleena]: Having to rewrite some parts of my site for mobile devices is such a pain in the butt.
[shmem]: Lady_Aleena: what editor are you using, on what platform?

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2017-04-27 11:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (505 votes). Check out past polls.