Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
4
Task/Scope-modifiers/Raku/scope-modifiers-1.raku
Normal file
4
Task/Scope-modifiers/Raku/scope-modifiers-1.raku
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
my $lexical-variable;
|
||||
our $package-variable;
|
||||
state $persistent-lexical;
|
||||
has $.public-attribute;
|
||||
13
Task/Scope-modifiers/Raku/scope-modifiers-2.raku
Normal file
13
Task/Scope-modifiers/Raku/scope-modifiers-2.raku
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
sub a {
|
||||
my $*dyn = 'a';
|
||||
c();
|
||||
}
|
||||
sub b {
|
||||
my $*dyn = 'b';
|
||||
c();
|
||||
}
|
||||
sub c {
|
||||
say $*dyn;
|
||||
}
|
||||
a(); # says a
|
||||
b(); # says b
|
||||
Loading…
Add table
Add a link
Reference in a new issue