Created
April 8, 2019 13:17
-
-
Save patrickbkr/e10c95ec776e70d56f1469aa41e93f6f to your computer and use it in GitHub Desktop.
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 | |
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