Last active
October 5, 2018 23:18
-
-
Save mwienand/f1f7272266fd1dcd4a3211d4babcd32a to your computer and use it in GitHub Desktop.
re-export p6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use FooBar; | |
module Foo { | |
sub foo is export { "foo" ~ bar() } | |
} | |
sub EXPORT { | |
FooBar::EXPORT::DEFAULT:: | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit module FooBar; | |
sub bar is export { "bar" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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