Skip to content

Instantly share code, notes, and snippets.

@softmoth
Created May 9, 2014 17:16
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 softmoth/3a1f246409a75adb2cef to your computer and use it in GitHub Desktop.
Save softmoth/3a1f246409a75adb2cef to your computer and use it in GitHub Desktop.
#! /usr/bin/env perl6
v6;
sub MAIN() {
use lib './ext/xyz/bin';
use xyz <foo>;
my $foo = foo();
say "Testy says: $foo!";
}
#! /usr/bin/env perl6
v6;
sub foo() is export {
return "lalala";
}
sub MAIN(*@foo) {
say "Testy says: ", foo(), @foo;
}
[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