The first argument to join is not code to be executed over and over again like with map and grep. So your example of join ++$i, @a doesn't actually pose a problem, unlike passing in a magical scalar that changes each time you look at it.
So, the behavior of your example code is already well defined.
- tye
In reply to Re^3: Undocumented join() feature, now defunct? (++$i)
by tye
in thread Undocumented join() feature, now defunct?
by johngg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |