We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d1db3a commit 2640d9eCopy full SHA for 2640d9e
doc/Type/Sub.pod6
@@ -36,6 +36,11 @@ coercers. To call them use the C<&>-sigil.
36
say [Int, Int('42'),&Int('42')];
37
# OUTPUT«[(Int) 42 oi‽]»
38
39
+Subs can be nested and scoped with C<my> and C<our>, whereby C<my> is the
40
+default. A sub declared with C<my> can not be reached from any outer scope. An
41
+C<our> scoped sub will not redefine a sub of the same name in the outer scope.
42
+Any sub can be accessed via a closure from any outer scope.
43
+
44
=head1 Traits
45
X<|trait_mod (declarator)>
46
0 commit comments