Binary strings: Difference between revisions

Content added Content deleted
m (→‎{{header|Raku}}: Fix Perl6 -> Raku in comments)
Line 2,801: Line 2,801:
(formerly Perl 6)
(formerly Perl 6)
{{Works with|rakudo|2018.03}}
{{Works with|rakudo|2018.03}}
<lang perl6># Perl 6 is perfectly fine with NUL *characters* in strings:
<lang perl6># Raku is perfectly fine with NUL *characters* in strings:
my Str $s = 'nema' ~ 0.chr ~ 'problema!';
my Str $s = 'nema' ~ 0.chr ~ 'problema!';
say $s;
say $s;


# However, Perl 6 makes a clear distinction between strings
# However, Raku makes a clear distinction between strings
# (i.e. sequences of characters), like your name, or …
# (i.e. sequences of characters), like your name, or …
my Str $str = "My God, it's full of chars!";
my Str $str = "My God, it's full of chars!";