# New Ticket Created by  Zoffix Znet 
# Please include the string:  [perl #131858]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=131858 >

Currently, this causes breakage in IO::String

    zoffix@VirtualBox~$ perl6 -e 'class Z is IO::Handle { method x { dd $.nl-in 
} }.new.x;'                                                                     

    zoffix@VirtualBox~$ perl6 -v
    This is Rakudo version 2017.07-138-ga91ad2d built on MoarVM version 

Above, it should give the two-element array, with "\r\n" as another element.

AlexDaniel bisected my original code[^1] to point to 
¦c63c57e9a823^: «"hello,"» ¦c63c57e: «"hello,\r\nworld!\r\n"»

I tried to golf it further, by taking all the relevant bits from IO::Handle 
into a custom class, but failed to reproduce the issue then.

[1] https://gist.github.com/zoffixznet/0c2cbd7acaaf0d3b27d245ad2e2bc737

Reply via email to