in reply to replace all but first
/A/g; s/\G(.*?)A/$1a/g; [download]
s{(?<=A)(.*)}{my $rest=$1; $rest=~tr/A/a/; $rest}e; [download]
substr($_, index($_, 'A')+1) =~ tr/A/a/; [download]
/A/g; substr($_, ++pos) =~ tr/A/a/; [download]