Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: boolean chaining - && and 'and'

by kyle (Abbot)
on Jul 29, 2009 at 14:40 UTC ( [id://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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2024-04-24 21:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found