Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 a log crumbles through the grate...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2018-02-19 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (258 votes). Check out past polls.

    Notices?