String case: Difference between revisions

Content deleted Content added
→‎{{header|Simula}}: mention COPY()
Thundergnat (talk | contribs)
Line 1,842: Line 1,842:
In Perl 6, case modification is implemented as builtin subroutine or method:
In Perl 6, case modification is implemented as builtin subroutine or method:


<lang Perl 6>my $word = "alpha BETA" ;
<lang perl6>my $word = "alpha BETA" ;
say uc $word; # all uppercase (subroutine call)
say uc $word; # all uppercase (subroutine call)
say $word.uc; # all uppercase (method call)
say $word.uc; # all uppercase (method call)