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?
In reply to Re: Progressive matching w/substitutions
by dreadpiratepeter
in thread Progressive matching w/substitutions
by argv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |