Last active
April 16, 2022 00:56
-
-
Save robin-a-meade/129bd1f6ed30f19d7ccb3e579beb5ec1 to your computer and use it in GitHub Desktop.
Raku requires the 'v' in version for the 'use' program
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 raku | |
| # The following `use` pragma requires the leading 'v' in the version specification, or you'll get | |
| # an error: | |
| # | |
| # in Raku please use "v" prefix for pragma (e.g., "use v6;", "use v6.c;") instead | |
| # | |
| # The relevant documention page shows only examples with the 'v' | |
| # https://docs.raku.org/language/pragmas | |
| use v6.d; | |
| say 'Hello, World!'; | |
| # Compare to perl, which requires the 'v' only if less than two components | |
| # use v5.16; | |
| # use 5.16.0; # Equivalent | |
| # use v5.16.0; # Equivalent | |
| # use 5.16; # Error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment