Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by pajout (Curate)
on Dec 20, 2006 at 14:32 UTC ( [id://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 (Archbishop) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://590911]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-19 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found