in reply to Re^2: Perl configuration files
in thread Perl configuration files
You don't want to create one, you want to use one that someone has already created for you on CPAN. The example I gave uses "ini" style configuration files, which is just a text file with variables and values separated by an equals sign -- it's not Perl, just text. Config::Tiny takes care of reading that and turning it into Perl data that your program can use.
If you haven't installed modules from CPAN before, see Installing Modules.
To help understand the difference between modules versus just including files, you might also want to read Including files.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl configuration files
by rbnorthcutt (Initiate) on Sep 15, 2006 at 17:14 UTC |