in reply to Re: local our $var; What does it do?
in thread local our $var; What does it do?
And with the new refaliasing feature, as I understand it, that becomes:
use v5.22; use feature 'refaliasing'; no warnings 'experimental::refaliasing'; sub sum { \local our @a = shift; my $total = 0; $total += $a[ $_ ] for 0 .. $#a; return $total; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: local our $var; What does it do?
by ikegami (Patriarch) on Jun 18, 2015 at 17:05 UTC | |
|
Re^3: local our $var; What does it do?
by BrowserUk (Patriarch) on Jun 18, 2015 at 10:49 UTC | |
by choroba (Cardinal) on Jun 18, 2015 at 12:07 UTC | |
by BrowserUk (Patriarch) on Jun 18, 2015 at 12:38 UTC | |
by ikegami (Patriarch) on Jun 18, 2015 at 17:15 UTC |