G'day All,
I'm reading through the perldelta for v5.22.0 and have twice come across code like:
local our $var;
Aliasing via reference has a link to perlref: Assigning to References which has:
\local our $scalar # etc.
Updated Modules and Pragmata (under B::Deparse) has:
local our is now deparsed correctly, with the our included.
When I hit it the first time, I thought it was new in v5.22.0: I couldn't recall seeing it previously and assumed I'd be enlightened further down the document.
Given the second hit (which I've just come across) is an update, it's clearly not new in v5.22.0.
I've searched for the string 'local our' in (CPAN v5.22.0 versions of) perlfunc, perlsub and perlref but can't find a match (except for the \local our $scalar already mentioned).
If someone could provide a link to where this is documented, that would be great.
Failing that, can anyone explain what it does.
Thanks in advance.
-- Ken
In reply to local our $var; What does it do? by kcott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |