Skip to content

Instantly share code, notes, and snippets.

@treyharris
Created June 21, 2019 21:38
Show Gist options
  • Save treyharris/2330a9ea91e577d299aa6c08f3fce207 to your computer and use it in GitHub Desktop.
Save treyharris/2330a9ea91e577d299aa6c08f3fce207 to your computer and use it in GitHub Desktop.
This one works
#!/usr/bin/env perl6
package My-Fourth-Modules-Script {
proto MAIN($) is export { * }
multi MAIN($x) {
say "This is the inside MAIN called with $x";
}
}
import My-Fourth-Modules-Script;
# $ ./My-Fourth-Modules-Script.pm6
# Usage:
# ./My-Fourth-Modules-Script.pm6 <x>
# $ ./My-Fourth-Modules-Script.pm6 32
# This is the inside MAIN called with 32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment