in reply to Replacing a given character starting with the xth occurence in a string
my $s = "Terence and Philip are sweet\n";
my $c = 'e';
my $r = 1;
my $n = 3;
Using $& and $' is a bad idea
since it slows down all regexen for the life of
that instance of the Perl interpreter (for the life of
the script). Perhaps you know that but I don't want
casual readers to get the wrong idea about those.
DejaVu Sans Mono
Droid Sans Mono
Envy Code R
Source Code Pro
The default, whatever it is
Results (109 votes). Check out past polls.