in reply to Re^2: Taking a subset of a hash
in thread [Answered!] Taking a subset of a hash
Doesn't defined $config{ $_ } && $config{ $_ } have the same truth value as $config{ $_ }?
Yes. I was attempting to capture your stated requirements:
but omits them if their configured value is false, undefined, or nonexistent.
and got it wrong. It should be:
exists $config{ $_ } && $config{ $_ }
|
|---|