[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] joins and golf



David L. Nicol wrote:
> 
> sub myjoin($@){
> 	local $" = shift;
> 	"@_";
> };
> 
> Benchmarks anyone?

Sure, this was covered a while back (on .misc, I think). 
Interpolation of arrays in strings has to use join() under
the hood; plus the overhead of inserting the result into the string.

-- 
John Porter

A pound of cure is worth a megaton of homeopathy.


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe