Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
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.
  • Comment on Re: Re: Re: what does that value mean, when you evaluate hash in a scalar context?

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 drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2025-06-20 01:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.