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

[FWP] joins and golf



Uri Guttman wrote:

> how many hours did that take you? you should enter a team in the perl
> golf tournament at tpc4.

around three hours, i think.  There were a lot of intermediate
iterations
and references to manual pages.  Several versions contained a join on $"
before I realized what the point of $" is.

I am not at this time planning on attending tpc4, although anything is
possible I suppose.

I'm now seeing lots of join
situations as candidates for the following treatment:

sub myjoin($@){
	local $" = shift;
	"@_";
};

Benchmarks anyone?

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