Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created November 15, 2016 20:46
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 dogbert17/67228d08b8fe9a78c5fbb460ae5b78b9 to your computer and use it in GitHub Desktop.
Save dogbert17/67228d08b8fe9a78c5fbb460ae5b78b9 to your computer and use it in GitHub Desktop.
use v6;
my $prog = Proc::Async.new(:w, 'hexdump', '-C');
my $promise = $prog.start;
await $prog.write(Buf.new(12, 42));
$prog.close-stdin;
await $promise;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment