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

Content deleted Content added
Inequality: Perl 6 is same as Perl 5 in this respect
join: Add Perl 6 section + examp[le
Line 1,309:
|-
| <code>join(''separator'', ''list_of_strings'')</code>
|[[Perl 5]], [[Perl 6]], [[PHP]]
|-
| <code>list_of_strings.join(''separator'')</code>
|[[Perl 6]]
|-
| <code>implode(''separator'', ''array_of_strings'')</code>
Line 1,388 ⟶ 1,391:
 
<syntaxhighlight lang="perl">
# Example in Perl 5
join( '-', ('a', 'b', 'c')); # 'a-b-c'
</syntaxhighlight>
 
<syntaxhighlight lang="perl6">
# Example in Perl 6
<a b c>.join('-'); # 'a-b-c'
</syntaxhighlight>