Comparison of programming languages (string functions): Difference between revisions

Content deleted Content added
m Double pipe in a link
Line 125:
|-
| <code>substr(''string'', ''i'', 1)</code> <br /> <code>''string.substr(''i'', 1)</code>
|[[Raku (programming language)||Raku]]<ref name="at2"/>
|0
|-
Line 325:
| <code>compare(''string<sub>1</sub>'',''string<sub>2</sub>'',''count'')</code>
|[[PL/I]]<ref name="lower1">IBM extension.</ref>
|}
 
<syntaxhighlight lang="perl">
Line 560:
"abc" ~ "def"; # returns "abcdef"
"Perl " ~ 5; # returns "Perl 5"
</syntaxhighlight>
 
<syntaxhighlight lang="perl6">
Line 2,540:
Right("sandroguidi", 100) ' returns "sandroguidi"
</syntaxhighlight>
 
 
<!-- endsection -->
Line 2,850 ⟶ 2,849:
string:substr("abc", 2). % returns "bc"
</syntaxhighlight>
 
 
<syntaxhighlight lang="perl">