note
shmem
<p>Lexical (my) variables cannot be localized, as the error tells you. Use [doc://my] for that :-P
<code>
use strict;
my $tt = 3.14159;
{
my $tt = 3;
print "In block, \$tt = $tt\n";
print "In block, \$::tt = $::tt\n";
}
print "Outside block, \$tt = $tt\n";
print "Outside block, \$::tt = $::tt\n";
</code>
[doc://local] is for globals. But there's a way to get [id://501844|lexical globs], I wonder whether these can be localized... ;-)
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-510280">
<small><pre>
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}</pre></small>
</div></div>
94007
578736