In risk_eval, you spelled it "age_22", but in _build_risk_type, it's spelled "age22". That means that when you get around to testing the condition, $E{age22} is undef (false). I discovered this by using the debugger.
As an aside, having variables named $E and %E in the same place is somewhat confusing.
In reply to Re: boolean chaining - && and 'and'
by kyle
in thread boolean chaining - && and 'and'
by metaperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |