Re: .join on Array

2008-06-26 Thread Moritz Lenz
Patrick R. Michaud wrote: > Following up to a thread on p6c regarding method fallbacks and .join: > > * What should [1,3,5].join('-') produce? I'm pretty sure it should be '1-3-5', because [1,3,5] is an Array ref > * How about ([1,3,5], 20).join('-') ? Probably the same as (~[1,3,5], 20).join

.join on Array

2008-06-26 Thread Patrick R. Michaud
Following up to a thread on p6c regarding method fallbacks and .join: * What should [1,3,5].join('-') produce? * How about ([1,3,5], 20).join('-') ? Thanks! Pm