in reply to Re: Closure Over Scalar?
in thread Closure Over Scalar?
I do like the constant way of doing things (++) the best in this case. Primarily because this is a hard-coded variable that doesn't appear that it'll change.
Also, constants are usually declared/defined at the top of a file, so if a change is needed, they're not hard to find within the code.
In Section
Seekers of Perl Wisdom