|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: boolean chaining - && and 'and'by kyle (Abbot) |
| on Jul 29, 2009 at 14:40 UTC ( #784249=note: print w/ replies, xml ) | Need Help?? |
|
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 Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||