Thread vorsilbe an elemente eines arrays haengen (26 answers)
Opened by element at 2009-09-22 18:40

Gast LanXoff
 2009-09-23 15:00
#126090 #126090
ab 5.8.1! vom 5.8.1. perldelta:

Quote
"map" in void context is no longer expensive. "map" is now context aware, and will not construct a list if called in void context.


Ein Vorteil zu for kommt dann, wenn man mehr als einen Befehl braucht, da postfix for nicht klammert.

Sonst müsste man entweder den scalar comma operator oder einen do {} Block benutzen.

Also persönlich ziehe ich dann ein void-map dem scalar comma-op vor...

View full thread vorsilbe an elemente eines arrays haengen