Course of Raku / Advanced / More about built-in types / Strings / Exercises

Acronym

Problem

Build an acronym from a phrase: take the first letter of every word, join them, and print the result in upper case.

Use this phrase:

my $phrase = 'hyper text markup language';

Example

The program prints:

HTML

Solution

See the solution

Course navigation

Solution: Reverse and shout   |   Solution: Acronym