in reply to Re^5: Recover a path from a config file
in thread Recover a path from a config file
I use this kind of config.file in order to improve my Perl approach.
If you want to improve your Perl approach, I would recommend using the right technique for the right job. Yes, your config file can be "made to work". But, you have created something that only you can modify or use. I would not expect any of my users to modify this file - there are a lot of arcane syntax issues with it because it is really a Perl program. I see that as a disadvantage.
In general for my INI type config files, I strive for a comprehensible format that a non-Perl person can modify and understand. I document all the stuff that a user might want to modify or understand.
Sometimes I put in say a DEBUG section and withhold some features to keep the users out of trouble. When a weird problem develops, I can explain clearly with simple instructions what to do in order to generate a bug report that I can understand. Or perhaps I put in something like DUMP_DECISION_STACK =0 and can tell the user to set that =1. I often use the INI file during development as debug "level" tool.
|
|---|