Syntactic Confectionery Delight | |
PerlMonks |
Re^2: How to access a variable inside subroutine?by pryrt (Abbot) |
on Sep 05, 2020 at 20:43 UTC ( [id://11121389]=note: print w/replies, xml ) | Need Help?? |
I had an idea when you used the pre-state closure idea: put your getter inside the context of counter, so it that $add is in scope:
In Section
Seekers of Perl Wisdom
|
|