![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: Closure Over Scalar?by stevieb (Canon) |
on Feb 18, 2021 at 17:56 UTC ( [id://11128532]=note: print w/replies, xml ) | Need Help?? |
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
|
|