in reply to 1 while s/// vs s///g

Don't forget to consider the performance difference when:
$_ = "abc" x 200_000; $string = "ab";
UPDATE
I started with 2 million, then changed to 200,000 because I thought that would be slow enough. But I messed up. Now fixed.

Replies are listed 'Best First'.
Re: Re (tilly) 1: 1 while s/// vs s///g
by merlyn (Sage) on May 23, 2001 at 21:50 UTC