![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re^2: Memory usage double expectedby sectokia (Pilgrim) |
on Oct 28, 2022 at 05:23 UTC ( #11147768=note: print w/replies, xml ) | Need Help?? |
So the simple answer is to avoid having both sides of the 'x' operator as constants. For example, this will fix your situations:
This would also fix it:
The conclusion seems to be that perl the constant itself occupies memory, and then the variable gets its own copy of the constant.
In Section
Seekers of Perl Wisdom
|
|