Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Rakudo may crash if you use get() when -n is used (perl6 -ne 'say get' <<< 'hello') #5287
This bug report is somewhat related to https://rt-archive.perl.org/perl6/Ticket/Display.html?id=128046
get() crashes with a weird error if the stream has ended.
But it works if the number of lines is even.
It should not crash.
On Sun, 01 May 2016 04:12:34 -0700, email@example.com wrote:
lines() appears to have a similar affliction, though I don't see any difference if the number of lines is even.
$ cat foo.txt
On Tue, 21 Feb 2017 11:05:15 -0800, firstname.lastname@example.org wrote:
Behavior has changed, the examples above now fail with:
Cannot do 'get' on a handle in binary mode