How is "character counting" done in Perl 6?

In Perl 5, it is `scalar tr/CG//` if I want to count the number of Cs
plus the number of Gs in a string.

S05 describes tr/// in terms of the .trans function, a handsome but
very different beast. Specifically, it doesn't seem to have a "scalar
context", with which one could count things.

Reply via email to