Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Multiple Conditional Statements

by dolmen (Sexton)
on Sep 12, 2013 at 07:59 UTC ( #1053669=note: print w/ replies, xml ) Need Help??


in reply to Re: Multiple Conditional Statements
in thread Multiple Conditional Statements

This should work as the original values are numbers, but this is inefficient as the numeric values have to be stringified to be put as keys the hash. And the hash construction itself counts too.


Comment on Re^2: Multiple Conditional Statements
Re^3: Multiple Conditional Statements
by TJPride (Pilgrim) on Sep 12, 2013 at 22:01 UTC
    That only matters if you are working with literally millions of items, and the alternative is far worse. Constructing a hash is more efficient than, say, sorting a large list of items.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (19)
As of 2014-07-11 16:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (231 votes), past polls