Jani Monoses <jani / iv.ro> writes:

> > | $whitespace = "                        \n" * 1000
> > | | $nonwhitespace = $whitespace
> > | $nonwhitespace[-2] = 'a'
> 
> doesn't this make the arrays the same? Isn't $nonwhitespace just a
> reference to $whitespace?

Er, yes.  Duh.  I haven't really awoken yet.  Duping whitespace doesn't
make any real difference, though.  More interesting results are found
when whitespace[0] = 'a'.  With n = 10000 and $nonwhitespace ignored
entirely:

       user        system    total       real
henrik 14.140000   0.060000  14.200000 ( 14.684509)
evan    0.110000   0.030000   0.140000 (  0.146974)
mikael  0.040000   0.020000   0.060000 (  0.060418)
tonoma  3.840000   0.040000   3.880000 (  4.163754)