http://qs321.pair.com?node_id=1105577


in reply to Re^3: Undocumented join() feature, now defunct? (++$i)
in thread Undocumented join() feature, now defunct?

Yes, okay I see that. To expect otherwise would require the creation of a temporary every time you access a scalar more than once in your code. One implication of executable code being well defined as the first parameter to join, is that the following will fix johngg's code to work on old and new versions of Perl:

<c>say join $inc+0, @arr;

Where the creation of a temporary to hold the result is implied.