A 10 de fevereiro de 2020 16:57:55 CET, David Santiago <deman...@gmail.com> 
escreveu:
>
>
>Hi!
>
>Is there a way to change the the following behaviour, so it considers \r\n as 
>two characters when using substr, instead of one?
>
>On raku version 2019.11
>
>> "1234\r\n". substr(*-4)
>4
>78
>> "1234\r\n". substr(*-4).ords()
>(52 13 10 55 56)
>
>
>Best regards,
>David Santiago
>

Copied wrong the example:

It should be:

On raku version 2019.11

> "1234\r\n78". substr(*-4)
4
78
> "1234\r\n78". substr(*-4).ords()
(52 13 10 55 56)



-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Reply via email to