Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: using hashes

by hdb (Monsignor)
on Sep 26, 2013 at 17:30 UTC ( [id://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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2024-04-20 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found