in reply to Replace the nth occurence
my $count = 3; my $str = "a,b,c,d"; substr $str, $count, 1, '|'; print $str;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Replace the nth occurence
by Ratazong (Monsignor) on Nov 21, 2012 at 05:54 UTC | |
by ColonelPanic (Friar) on Nov 21, 2012 at 08:58 UTC |