Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 reply to boolean chaining - && and 'and'

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.


Comment on Re: boolean chaining - && and 'and'
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://784249]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2014-10-31 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (216 votes), past polls