in reply to Re^5: Generating an array of n identical elements
in thread Generating an array of n identical elements

something is getting optimized away at compile time

Maybe it is due to the fact that Blake's was a real subroutine with parameters and mine is more like a <code>constant<code>...

I expected a wider difference in my test case. Of course, Blake's is far more general than mine and it's results are much more reliable.

Ciao!
--bronto

# Another Perl edition of a song:
# The End, by The Beatles
END {
  $you->take($love) eq $you->made($love) ;
}

  • Comment on Re: Re^5: Generating an array of n identical elements