on 01/31/2001 11:42 PM, Ronald J Kimball at
[EMAIL PROTECTED] wrote:
> What value would you want $value to have to mean "I gave you this
> attribute, but I actually want you to ignore it"? All possible values
> already have a meaning. undef means "Include this attribute without a
> value" and anything else means "Include this attribute with the specified
> value".
>
> Try this instead:
>
> $cgi->select({ $value ? (-disabled => undef) : () });
a tad messy, but ok.
The only thing is I've had some difficulty getting the test ? yes : no;
things to work in any CGI.pm script I've tried them in. I will grant the
possibility that I'm not doing them correctly, but I have tried various
times and ways over the last 9 months off and on, as experiments, and always
wind up using an if-then block instead.
--
Scott R. Godin | e-mail : [EMAIL PROTECTED]
Laughing Dragon Services | web : http://www.webdragon.net/