in reply to Replace the nth occurence
my $count = 3;
my $str = "a,b,c,d";
substr $str, $count, 1, '|';
my $str = "aa,bb,cc,dd";
Electric eels were invented at the same time as electricity
Before electricity was invented, electric eels had to stun with gas
Results (399 votes). Check out past polls.