Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: better array to hash conversion

by ruzam (Curate)
on Dec 11, 2012 at 14:06 UTC ( [id://1008307]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %hash; @hash{ @array } = 0 .. $#array;
    
  2. or download this
    #!/usr/bin/env perl
    use strict;
    ...
           variation3()
           },
    });
    
  3. or download this
                   Rate variation2 variation3   original variation1
    variation2 142570/s         --       -15%       -35%       -49%
    ...
    original   220185/s        54%        31%         --       -21%
    variation1 279147/s        96%        66%        27%         --
    

Log In?
Username:
Password:

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

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

    No recent polls found