On Wed, 8 Sep 2004, Chip Salzenberg wrote:

> According to [EMAIL PROTECTED]:
> > So how many stores do we expect for
> >    ($a = "xxx") =~ s/a/b/g
> > and which of the possible answers would be more useful?
>
> I think it depends on C<($a = "aaa") =~ s/a/b/g>.

I would agree with you in general, but since we're generally after speed,
surely we want to allow for optimisations such as "don't store unless
something's changed"; this would also be compatible with the boolean context
value of s///.

-Martin

-- 
CAUTION: The information contained in this message is consequential and
subject to legacy provenance. If you are the intended recipient you are
hereby notified that reading this message is permitted. If you have not
received this message please notarise the sender and destroy the
originator.


Reply via email to