I want to add a string (A) after all specific other strings (bbc). So, I match bbc and want to replace it with itself with A
A
bbc
Use $&, see http://perldoc.perl.org/perlvar.html
$&
echo 'aabbcc' | perl -p -e 's/bbc/$&A/g'
aabbcAc