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