in reply to Surely @a is local to sub load?
sub load { my @a unless @n; push @a, @n; @a }
Now read the note in Statement Modifiers:
> The behaviour of a my, state, or our modified with a statement modifier conditional or loop construct (for example, my $x if ... ) is undefined.
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Surely @a is local to sub load?
by ikegami (Patriarch) on Jun 27, 2016 at 18:30 UTC | |
by choroba (Cardinal) on Jun 27, 2016 at 19:15 UTC | |
|
Re^2: Surely @a is local to sub load?
by philiprbrenan (Monk) on Jun 27, 2016 at 01:17 UTC |