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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Undocumented join() feature, now defunct? (++$i)
by FloydATC (Deacon) on Oct 30, 2014 at 09:22 UTC |
In Section
Seekers of Perl Wisdom