Upper/Lower Case

Author: stmuk

You have a string and want to upper/lower case it

Source code: 01-13upper-lower-case.p6

#!/usr/bin/env perl6

use v6;

my $string = "the cat sat on the mat";

say $string=$string.uc; # THE CAT SAT ON THE MAT

say $string.=lc;        # the cat sat on the mat

say $string.wordcase;   # The Cat Sat On The Mat

$string.tc.say;         # The cat sat on the mat