Re: Hamming minigolf post mortem

[email protected]
Newsgroups perl.golf
Message-ID <[email protected]>

Mtv Europe wrote:
> 
<great explanation snipped>

Thanks for enlightening us on your winning solution!

I like to learn the secrets of the masters!

From MTVs explanation:

	$#: is the only non-letter version
	$^C can be useful (Terje found this true)
	N%6 replaces range 0..5  (Rick also had this one)

From Solutions:

	sort{$a>$b} (Daniel & Peter) # Only works for smallest value per Juho
	sort{$a{key}=$a<=>$b} (Ton) # Neat assignment in sort sub
	$a{key}=bignum (Juho) to allow sort %hash and ignore values
	a..fan (Keith) saves a stroke when loop var is not used (68 for Peter)
	hash key includes newline (Ton & Rick) instead of -l

I am sure I missed a lot of cool tricks and learning about them is the
most interesting and the best way to help my future scores. 

Anyone have any pointers to fun bits that I missed?

How about some additional explanations? It may encourage some fence
sitters to play the next round.

I am especially curious about the crazy counters in Rick's solution
(Jacob's too). And what is the meaning of that leading slash
(reference)? It really looks like a mistake :)

What about that beatiful regex in Terje's solution?

Any information will be most appreciated!

Michael
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.