Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

RE: RE: Re: Array to Hash

by plaid (Chaplain)
on May 10, 2000 at 21:25 UTC ( [id://11016]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    map { $code .= "\$hash{$_} = 1;\n" } @array; eval "$code";
    
  2. or download this
    use Benchmark;
    
    ...
            eval "$code";
            }
    });
    
  3. or download this
    Benchmark: timing 10000 iterations of btrott, plaid...
        btrott:  1 wallclock secs ( 0.56 usr +  0.00 sys =  0.56 CPU)
         plaid: 23 wallclock secs (22.07 usr +  0.06 sys = 22.13 CPU)
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2024-04-18 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found