Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created March 20, 2017 19:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save zoffixznet/e810c961eb0964a311e2e985e1b24d6b to your computer and use it in GitHub Desktop.
zoffix@VirtualBox:/tmp/tmp.oUV51pNrwV$ perl6 -e '"/tmp/foo".IO.spurt: "a♥"; with open "/tmp/foo", :bin { dd .readchars(1); }'
"a♥"
zoffix@VirtualBox:/tmp/tmp.oUV51pNrwV$ perl6 -e '"/tmp/foo".IO.spurt: "a♥b"; with open "/tmp/foo", :bin { dd .readchars(1); }'
"a"
zoffix@VirtualBox:/tmp/tmp.oUV51pNrwV$ perl6 -e '"/tmp/foo".IO.spurt: "ac♥b"; with open "/tmp/foo", :bin { dd .readchars(1); }'
"a"
zoffix@VirtualBox:/tmp/tmp.oUV51pNrwV$ perl6 -e '"/tmp/foo".IO.spurt: "ac♥db"; with open "/tmp/foo", :bin { dd .readchars(1); }'
"a"
zoffix@VirtualBox:/tmp/tmp.oUV51pNrwV$ perl6 -e '"/tmp/foo".IO.spurt: "ac♥db"; with open "/tmp/foo", :bin { dd .readchars(2); }'
"ac"
zoffix@VirtualBox:/tmp/tmp.oUV51pNrwV$ perl6 -e '"/tmp/foo".IO.spurt: "ac♥db"; with open "/tmp/foo", :bin { dd .readchars(3); }'
"ac♥"
zoffix@VirtualBox:/tmp/tmp.oUV51pNrwV$ perl6 -e '"/tmp/foo".IO.spurt: "ac♥db"; with open "/tmp/foo", :bin { dd .readchars(4); }'
"ac♥d"
zoffix@VirtualBox:/tmp/tmp.oUV51pNrwV$ perl6 -e '"/tmp/foo".IO.spurt: "ac♥db"; with open "/tmp/foo", :bin { dd .readchars(5); }'
"ac♥db"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment