Skip to content

Instantly share code, notes, and snippets.

@moritz
Created March 30, 2012 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moritz/2248944 to your computer and use it in GitHub Desktop.
Save moritz/2248944 to your computer and use it in GitHub Desktop.
Weir rakudo behaviour for files without newlines
moritz@jacq:~/p6/rakudo>echo -n foo > test
moritz@jacq:~/p6/rakudo>echo foo > test
moritz@jacq:~/p6/rakudo>perl6 -e '.say for open("test").lines'
foo
moritz@jacq:~/p6/rakudo>echo -n foo > test
moritz@jacq:~/p6/rakudo>perl6 -e '.say for open("test").lines'
Unable to open filehandle from path 'test'
in method open at src/gen/CORE.setting:6268
in method get at src/gen/CORE.setting:6288
in code <anon> at src/gen/CORE.setting:6313
in sub coro at src/gen/CORE.setting:4797
in method reify at src/gen/CORE.setting:4778
in method reify at src/gen/CORE.setting:4549
in method reify at src/gen/CORE.setting:4549
in method gimme at src/gen/CORE.setting:4937
in method reify at src/gen/CORE.setting:4628
in method reify at src/gen/CORE.setting:4549
in method reify at src/gen/CORE.setting:4549
in method gimme at src/gen/CORE.setting:4937
in method eager at src/gen/CORE.setting:4912
in method eager at src/gen/CORE.setting:1024
in sub eager at src/gen/CORE.setting:5200
in block <anon> at -e:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment