String case: Difference between revisions
Content deleted Content added
→{{header|Simula}}: mention COPY() |
Thundergnat (talk | contribs) m →{{header|Perl 6}}: fix markup |
||
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 |
<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) |