in reply to Perl style: Arguing against three-argument join()
In the case you show, I think I prefer concatenation, but I have no problem with the original join. The join with the slice stinks because I think it obscures the intent. If it had been...
join $separator, @config{ 'item1', 'item2' };
...then I'd have thought that was the best of the three.
|
|---|