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

Re: Re: Re: Re: Re: print scalar %hash... erm

by pileswasp (Monk)
on May 25, 2001 at 00:21 UTC ( [id://83112]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: print scalar %hash... erm
in thread print scalar %hash... erm

I can do this one :o)
From perldoc perlfunc:

As an lvalue `keys' allows you to increase the
number of hash buckets allocated for the given
hash. This can gain you a measure of efficiency
if you know the hash is going to get big. (This
is similar to pre-extending an array by assigning
a larger number to $#array.) If you say

keys %hash = 200;

then `%hash' will have at least 200 buckets
allocated for it--256 of them, in fact, since it
rounds up to the next power of two. [...]

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-25 17:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found