Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^5: why use a hash instead of an array

by LanX (Canon)
on Jun 12, 2013 at 23:09 UTC ( #1038615=note: print w/ replies, xml ) Need Help??


in reply to Re^4: why use a hash instead of an array
in thread why use a hash instead of an array

thanks for testing, I was too lazy! =)

The standard for "Map as Grep" is to take ternary to define the false case too, and this for good reasons...

Though I'm not sure why if returns an empty string "" and not an empty list () when false.

DB<141> $x = do { "---" if 0>0 } => "" DB<142> "<$x>" => "<>"

Cheers Rolf

( addicted to the Perl Programming Language)


Comment on Re^5: why use a hash instead of an array
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2015-07-03 11:09 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 (51 votes), past polls