Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Re: what does that value mean, when you evaluate hash in a scalar context?

by dingus (Friar)
on Dec 14, 2002 at 17:47 UTC ( [id://219874]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: what does that value mean, when you evaluate hash in a scalar context?
in thread what does that value mean, when you evaluate hash in a scalar context?

Hashes are known to be innefiicient uses of memory. Thats the tradeoff you get for speed.

One thing I did recently discover is that a nearly full hash will tend to have its elements in some kind of well defined order.
For example if you do letter frequency analysis of a large document because you think this might be fun for cryptography you end up with a hash %frequencies which contains most of the ASCII character set from 32 to 127 and they are also in nearly alphabetical order that is keys %frequencies produces a list ... 'A', 'B', 'C', 'D' ...

Dingus


Enter any 47-digit prime number to continue.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-29 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found