map returns a list. It should be used when you want the list being generated as output.
do{...} for should be used when you just want to do things in a loop.
Since you have your statement in void context, you obviously don't want any output. Thus, the for loop is what you want.
In reply to Re: map {} list or do {} for list?
by SuicideJunkie
in thread map {} list or do {} for list?
by Random_Walk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |