map builds a list of its results, which is why it is inadvisable to use it in void context as you have.
The fact that map does so in void context, and hence isn't paying attention to context, is a bug in the implementation of map. This has been known for eons, but noone ever cared enough to provide a patch.
Abigail
In reply to Re: Memory leak in map function?
by Abigail-II
in thread Memory leak in map function?
by ezekiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |