Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Does Perl do constant anonymous hash creation optimisation?

by Thilosophy (Curate)
on Jul 08, 2006 at 09:15 UTC ( #559913=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    sub static_hash {
    ...
    static_hash;
    static_hash;
    static_hash;
    
  2. or download this
    planz$ perl /tmp/static.pl 
    HASH(0x1801380)
    HASH(0x1801380)
    HASH(0x1801380)
    
  3. or download this
    #!/usr/bin/perl
    sub static_hash {
    ...
    static_hash(8);
    static_hash(9);
    static_hash(10);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://559913]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2017-12-11 08:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (288 votes). Check out past polls.

    Notices?