Advertisement
Guest User

Untitled

a guest
Feb 4th, 2021
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #!/bin/env raku
  2.  
  3. module MyModule {
  4. say 'In MyModule';
  5. constant $InnerConst = "I'm InnerConst";
  6. constant $InnerConstTagged is export(:ATAG) = "I'm InnerConstTagged in TAG ATAG";
  7.  
  8. package Inner {
  9.  
  10. say 'In Inner';
  11. our $InnerInnerVar = "I'm InnerInner var";
  12. constant A = 33;
  13. constant B = 42;
  14. my $myInnerInnerVar = "I'm My Inner Inner var!";
  15. }
  16.  
  17. package EXPORT::MYTAG {
  18. say "You ENTER into my TAG";
  19. }
  20. }
  21. dd MyModule::Inner::.kv;
  22. my $var = 'Inner';
  23. my $x = $MyModule::($var);
  24. dd $x;
  25. ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement