in reply to Re: Config file default options?
in thread Config file default options?
$config->{$section}->{$option} = $defaults->{$section}->{$option} unless $config->{$section}->{$option};
I would throw the word exists (or defined) in there after the unless, just in case a user ever wants to specify a false value (e.g., a blank subject line is very rarely a good idea, but occasionally when sending mail to certain kinds of really old autoresponders that read commands from the subject line it can be desirable; there are also highly specialised cases for a blank From field).
|
|---|