$x = join 'B', split /a/, $x, 4; [download]
In reply to Re: Does Perl support a given number of replacements ? by JavaFan in thread Does Perl support a given number of replacements ? by Anonymous Monk