-
-
Save softmoth/3a1f246409a75adb2cef to your computer and use it in GitHub Desktop.
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
#! /usr/bin/env perl6 | |
v6; | |
sub MAIN() { | |
use lib './ext/xyz/bin'; | |
use xyz <foo>; | |
my $foo = foo(); | |
say "Testy says: $foo!"; | |
} |
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
#! /usr/bin/env perl6 | |
v6; | |
sub foo() is export { | |
return "lalala"; | |
} | |
sub MAIN(*@foo) { | |
say "Testy says: ", foo(), @foo; | |
} |
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
[11:09:44] &2 $ perl6-m bar | |
===SORRY!=== | |
Error while importing from 'xyz': no EXPORT sub, but you provided positional argument in the 'use' statement |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment