According to the 5.8.8 wording, the same code would take 3MB:
I believe that this has always been the case since (at least) 5.6.1 (and probably before). This is one of the places perl trades space for speed.
It's only with 5.8.8 that the documentation has correctly documented the reality.
In reply to Re^2: perl memory re-usage
by BrowserUk
in thread perl memory re-usage
by mreece
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |