all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
9
Task/String-case/Perl-6/string-case.pl6
Normal file
9
Task/String-case/Perl-6/string-case.pl6
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
my $word = "alpha BETA" ;
|
||||
say uc $word; # all uppercase (subroutine call)
|
||||
say $word.uc; # all uppercase (method call)
|
||||
# from now on we use only method calls as examples
|
||||
say $word.lc; # all lowercase
|
||||
say $word.tc; # first letter titlecase
|
||||
say $word.tclc; # first letter titlecase, rest lowercase
|
||||
say $word.tcuc; # first letter titlecase, rest uppercase
|
||||
say $word.wordcase; # capitalize each word
|
||||
Loading…
Add table
Add a link
Reference in a new issue