|Problems? Is your data what you think it is?|
Config Files in Perlby narashima (Beadle)
|on Nov 22, 2006 at 22:03 UTC||Need Help??|
narashima has asked for the wisdom of the Perl Monks concerning the following question:
I have looking to create an script that needs to gets lots of parameters from a config file.
While researching on the net, I found some very interesting articles.
Below are some approaches I found(or atleast the ones that I understood somewhat):
1.Using a name=value based config file
2.Using a config file with perl code in it and then doing a "require $filename" in the application script to bring in the data
3.Using a config file with perl code in it and then doing a "do $filename" in the application script
I am curious to know if any of you have used these approaches? Any pros and cons for using the above approaches that make using one of the above more favourable?any approaches other than the ones above that are more powerful/better?