Yes, there is something better, but what it is exactly depends on how complex your parameters are, what kind of validations you'll want to be doing on them, and so on. But the baisic thing about configuration is that if they are in a data file, you can give them to someone who isn't familiar with Perl syntax for editing and they have less chance of breaking things if they leave off a semicolon somewhere.
Very often INI-style config files win over thanks to their simplicity. Take a look over at CPAN -- they have plenty of modules that handle this format. My personal favorite is Config::Tiny, but shop around. (If your config data is flat, for example, you might not like Config::Tiny's "_" level.)
For more complex data — long text, arrays, maps and so on — YAML is a nice choice. It also has a Perl module to handle it. See if you like it better! (Some people dislike its sensitivity to indentation.)
In reply to Re^3: Changing parameters
by gaal
in thread Changing parameters
by sparkel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |