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

Re^3: using hashes

by hdb (Prior)
on Sep 26, 2013 at 17:30 UTC ( #1055869=note: print w/ replies, xml ) Need Help??

in reply to Re^2: using hashes
in thread iterating hash keys?

In order to make things even more complicated I recommend to replace $hash{ $1 } with

$hash{ $1 } // $1

which means if $1 is not found in your hash, then replace your word with itself, ie leave it unchanged.

Comment on Re^3: using hashes
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2015-03-03 13:22 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (71 votes), past polls