Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

RE: RE: Re: Array to Hash

by plaid (Chaplain)
on May 10, 2000 at 21:25 UTC ( #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? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2022-08-10 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?