The escape sequence \x allows you to embed characters by their code.
"\x0D\x0A" is the same as the variable.

I'm not sure what you thought I was showing you on IRC last night, since I
pointed this out multiple times.

On Sat, Oct 20, 2018 at 3:43 AM ToddAndMargo via perl6-users <
perl6-users@perl.org> wrote:

> Hi All,
>
>     my Str $CrLf   = chr(0x0d) ~ chr(0x0a);
>     $String ~~ s:global/ $CrLf /\n/;
>
> How do I get rid of the extra $CrLf variable?
>
> Many thanks,
> -T
>


-- 
brandon s allbery kf8nh
allber...@gmail.com

Reply via email to