in reply to how to read conf file in perl script
You might try Config::IniFiles[mysection] somevar = value
use Config::IniFiles; my $config_data = new Config::IniFiles( -file => $config_file ) or die +("Cannot read $config_file"); $myvar = $config_data->val('mysection', 'somevar', 'defaultvalue');
|
|---|