Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Perl Internals: Hashes

by hardburn (Abbot)
on Apr 14, 2004 at 21:24 UTC ( #345209=note: print w/ replies, xml ) Need Help??


in reply to Perl Internals: Hashes

Do Perl hashes differ in implementation versus "associative arrays" that appear in other languages?

Maybe. Looking up key/value pairs doesn't necessarily have to be done by a hash, but it's certainly the first data structure I'd reach for when I needed that sort of functionality (even before I knew a lot of Perl).

There are a lot of details about hash implementations that will make tradeoffs for various system resources. I doubt any language implements them exactly the same way perl does (and I wouldn't be surprised if many details under Ponie will be different from the traditional perl implementation). In fact, the exact implementation details of hashes has changed many times just in Perl5.

----
: () { :|:& };:

Note: All code is untested, unless otherwise stated


Comment on Re: Perl Internals: Hashes
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2015-07-06 08:13 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 (70 votes), past polls