Topic variable: Difference between revisions
→{{header|Phix}}
SqrtNegInf (talk | contribs) m (→{{header|Perl}}: use of 'my $_' is deprecated, simplified code, show output) |
|||
Line 397:
}</lang>
The scope of the <tt>$_</tt> variable is always lexical in Perl 6, though a function can access its caller's topic if it asks for it specially via <tt>CALLER::<$_></tt>.
=={{header|Phix}}==
The closest thing would be to declare a variable with just an underscore as its identifier.
<lang Phix>object _
_ = 3
?_
?_*_</lang>
{{out}}
<pre>
3
9
</pre>
=={{header|PicoLisp}}==
|