Re: Streamlined application/script development [Re: coding an Application in perl]

Chapman Flack <[email protected]> Tue, 12 Sep 2017 11:32:26 -0400
Newsgroups gmane.comp.archivers.amanda.devel
Message-ID <[email protected]>
On 09/12/2017 11:24 AM, Jean-Louis Martineau wrote:

> The _setter is always called, it is the callback that is not always called.

You caught me! :)

> Oops, the _setter do not know $optname, so it can't set
> $refopthash->{'opt_'.$optname}

Hmm, that's true too.

I think set_option_value will be ok for setting the default;
it will be clear, as it will be the same method used inside a
setter callback, and also the same way you set a default for
a property that doesn't use a special setter.

-Chap