Skip to content

Instantly share code, notes, and snippets.

@robin-a-meade
Last active April 16, 2022 00:56
Show Gist options
  • Save robin-a-meade/129bd1f6ed30f19d7ccb3e579beb5ec1 to your computer and use it in GitHub Desktop.
Save robin-a-meade/129bd1f6ed30f19d7ccb3e579beb5ec1 to your computer and use it in GitHub Desktop.
Raku requires the 'v' in version for the 'use' program
#!/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