|
|
| more useful options | |
| PerlMonks |
Re: Re: Strange benchmark result that has me totally confoundedby jpfarmer (Pilgrim) |
| on Apr 16, 2004 at 18:45 UTC ( [id://345900]=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.
But I'm not modifying @messages, am I? Unless I'm missing something, I'm only modifying $post. The value of @messages isn't touched during the foreach loop because data from the array is copied into the scalar. That said, I see a change in performance as well when I use local to create a copy of @messages, and I just don't get it.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||