in reply to Replacing a specfied instance of a pattern in a string
my $instance = 3;
$string = s/fsih/--$instance?$&:'fish'/eg;
15 years from now, by which time it will be a completely different language
It's just a number, so who cares?
Results (174 votes). Check out past polls.