Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: Using foreach to process a hash

by jdporter (Paladin)
on Oct 22, 2006 at 14:06 UTC ( [id://579859]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Benchmark;
    
    ...
    {
        for ( @words ) { $a = $_; $b = $_; }
    }
    
  2. or download this
    311142 words
    
    ...
    foreach_loop_novar:  6 wallclock secs ( 6.17 usr
       while_each_loop:  5 wallclock secs ( 5.13 usr 
                 array:  1 wallclock secs ( 1.08 usr
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-26 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found