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 4554a51 commit 41c9e4bCopy full SHA for 41c9e4b
lib/Language/variables.pod
@@ -119,6 +119,17 @@ assigning to one after you've defined it:
119
120
θ = 3; # Dies with the error "Cannot modify an immutable Num"
121
122
+Sigilless variables do not enforce context, so they can be used to pass
123
+something on as-is:
124
+
125
+ sub logged(&f, |args) {
126
+ say('Calling ' ~ &f.name ~ ' with arguments ' ~ args.perL)
127
+ my \result = f(|args);
128
+ # ^^^^^^^ not enforcing any context here
129
+ say(&f.name ~ ' returned ' ~ result.perl)
130
+ return |result;
131
+ }
132
133
=head1 Twigils
134
135
Twigils influence the scoping of a variable. Please be aware that twigils
0 commit comments