> How would that work? Are you suggesting that there just be an object
> or exported method so the user would do this instead?
>
> $ldhost = $self->qp->config('ldap_host');
> $ldhost = validate($ldhost, qr/^(([a-z0-9]+\.?)+)$/) ||
> "localhost";
Yes. Explicit.
Also, Charlie's point about trusting your config files sounds sane to
me. Tainting gets out of hand. You _do_ want to validate the format
of the config files, but not for taint purposes, more to make sure you
don't pass "pizza" to something expecting 42. (But then again, if
something is expecting 42, it should blow up when handed "pizza",
whether that came from a config file or not.
-R