Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/env raku
- module MyModule {
- say 'In MyModule';
- constant $InnerConst = "I'm InnerConst";
- constant $InnerConstTagged is export(:ATAG) = "I'm InnerConstTagged in TAG ATAG";
- package Inner {
- say 'In Inner';
- our $InnerInnerVar = "I'm InnerInner var";
- constant A = 33;
- constant B = 42;
- my $myInnerInnerVar = "I'm My Inner Inner var!";
- }
- package EXPORT::MYTAG {
- say "You ENTER into my TAG";
- }
- }
- dd MyModule::Inner::.kv;
- my $var = 'Inner';
- my $x = $MyModule::($var);
- dd $x;
- ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement