good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Closure Over Scalar?by QM (Parson) |
on Feb 19, 2021 at 14:25 UTC ( [id://11128561]=note: print w/replies, xml ) | Need Help?? |
This seems to be what use feature 'state' is made for.Yes, state has fallen out of my lexicon from disuse. A very good point, I don't need a closure, and the assignment happens as expected! -QM
In Section
Seekers of Perl Wisdom
|
|