Course of Raku / Advanced / More about built-in types / Strings / Exercises
The domain part
Problem
index tells you where a character is;
substr then lets you cut the string at that point. Combine
them.
Given the email address user@example.com, find the
position of the @ sign and print everything that comes
after it — the domain part.
Example
The program prints:
example.com