I think you misunderstood what .trans does. You specify the range of characters that you want to change to other characters. You do NOT specify a string to be changed to another string.
So the answer A_BC DE_F correct answer, because a is replaced by a , + is replaced by _ , b is replaced by b , c > is replaced by c , etc. etc.
Perhaps we should introduce a .subst version that takes Hash for comparisons and replacements. Meanwhile, you probably have to create a loop that will work on the hash keys / values and call .subst with this. ( https://docs.perl6.org/routine/subst )
source share