jkeenan1 has asked for the wisdom of the Perl Monks concerning the following question:
It has been suggested that in a future version of the distro, I allow the user to save the selections entered as new default values (to make using the interactive mode even lazier than it is now), and that I save those new default values in a .rc file, similar to .bashrc or .vimrc which the user will store in his/her home directory. Subsequent invocations of the module's interactive mode will extract default values from the .rc file rather than from the module itself.
There are several different ways of writing such configuration files (Perl scripts required in to a program, Windows-style .ini files, Apache-style .conf files, XML files) and quite a few CPAN modules designed to read such files. I'm not concerned here with the merits of these different approaches, as they've been well discussed on Perlmonks going back five years.
My question is simpler and lazier: Can anyone point me to a CPAN module which already does this? I.e., Is there a CPAN module which already stores a config file in a user's home directory as part of its normal operation?
I'd like to reinvent the wheel as little as possible. Thanks in advance.
|
|---|