in reply to Progressive matching w/substitutions

wouldn't:
my $string = "abc abc abc abc";
my $x = 1;
$str =~ s/abc/"abc def(" . $x++ . ")"/ge;
print "\nDone. string = '$string'\n";
work just fine, without the looping?


-pete
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."
  • Comment on Re: Progressive matching w/substitutions