Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Welcome to the Monastery
 
PerlMonks  

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

by simonm (Vicar)
on Apr 16, 2004 at 20:32 UTC ( [id://345911]=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

But I'm not modifying @messages, am I?

Surprise! You are, due to the magic of variable aliasing:

my @messages = <DATA>; foreach my $post ( @messages ) { $post =~ s/ /-/g; } print @messages; __DATA__ one foo bar three words here
  • 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://345911]
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.