Advertisement
Guest User

Untitled

a guest
Feb 4th, 2021
50
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement