Created
June 21, 2019 21:38
-
-
Save treyharris/2330a9ea91e577d299aa6c08f3fce207 to your computer and use it in GitHub Desktop.
This one works
This file contains hidden or 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 | |
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