Skip to content

Instantly share code, notes, and snippets.

@mwienand
Last active October 5, 2018 23:18
Show Gist options
  • Save mwienand/f1f7272266fd1dcd4a3211d4babcd32a to your computer and use it in GitHub Desktop.
Save mwienand/f1f7272266fd1dcd4a3211d4babcd32a to your computer and use it in GitHub Desktop.
re-export p6
use FooBar;
module Foo {
sub foo is export { "foo" ~ bar() }
}
sub EXPORT {
FooBar::EXPORT::DEFAULT::
}
unit module FooBar;
sub bar is export { "bar" }
use lib 'sandbox/';
use Foo;
say foo();
say bar();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment