Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Ternary operators

by boftx (Deacon)
on Dec 18, 2013 at 22:15 UTC ( #1067726=note: print w/ replies, xml ) Need Help??


in reply to Ternary operators

Step through your first loop by hand and see what is assigned each time through it. $broken->{this} is assigned "1" the first time, but is being assigned "0" and the second and third pass. Similarly for $broken->{that} and $broken->{another}.

The end result is that only the results for the last pass is stored in the hash keys.

It helps to remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.


Comment on Re: Ternary operators

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (16)
As of 2015-07-30 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls