Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Re: Strange benchmark result that has me totally confounded

by chromatic (Archbishop)
on Apr 16, 2004 at 19:15 UTC ( [id://345903]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Re: Strange benchmark result that has me totally confounded
in thread Strange benchmark result that has me totally confounded

As perldoc perlsyn says:

In other words, the "foreach" loop index variable is an implicit alias for each item in the list that you're looping over.

I don't think local will do it either; not unless you want an empty array or are doing something a lot more clever than I can imagine. You need to reset the values of the array for each benchmark iteration.

  • Comment on Re: Re: Re: Strange benchmark result that has me totally confounded
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://345903]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.