Skip to content

Instantly share code, notes, and snippets.

@patrickbkr
Created April 8, 2019 13:17
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 patrickbkr/e10c95ec776e70d56f1469aa41e93f6f to your computer and use it in GitHub Desktop.
Save patrickbkr/e10c95ec776e70d56f1469aa41e93f6f to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl6
class Paramsub is Parameter {
has Str $.literal-value is required;
}
my $param = Paramsub.new(literal-value => "asdf");
say "Literal value is: {$param.literal-value}";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment