Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/p6.p6 Secret

Created June 22, 2018 15:25
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 zoffixznet/5eecfa5c50510e6295df23c1eb4d9fc8 to your computer and use it in GitHub Desktop.
Save zoffixznet/5eecfa5c50510e6295df23c1eb4d9fc8 to your computer and use it in GitHub Desktop.
$ cat pod.pm6
sub MAIN('meows') {}
=begin pod
Moo mooo
=end pod
$ cat foo.p6
my $p := Promise.new;
my $v := $p.vow;
start 'pod.pm6'.IO.slurp.&[~](「; INIT {$v.keep: $=pod; sleep}」).EVAL;
say await $p;
say "Our pod:";
say $=pod;
=begin pod
Meow moew.
=end pod
$ perl6 foo.p6
[Pod::Block::Named{:name("pod")}
Pod::Block::Para
Moo mooo
]
Our pod:
[Pod::Block::Named{:name("pod")}
Pod::Block::Para
Meow moew.
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment