use IniConf; sub readini { my $cfg = IniConf->new( -file => $_[2] ); my $value = $cfg->val($_[0], $_[1]); return $value; }