Fun with Boggle

2007-12-06 Thread Brad Greenlee
I haven't written any Perl for fun in a while, but I recently entertained myself a bit by writing a Boggle puzzle solver in Ruby: http://blog.footle.org/2007/12/05/cheating-for-fun/ I'm not sure if this particular puzzle has come up before in FWP, but I was curious as to how closely this

Re: P2P in 15 lines

2004-12-16 Thread Brad Greenlee
Doh! Somebody beat me to it. Didn't use IO::Socket either: http://developers.slashdot.org/article.pl?sid=04/12/15/1953227tid=95tid=156tid=1 -b Sven Neuhaus wrote: Can we beat them (in perl)? http://www.freedom-to-tinker.com/tinyp2p.html

Re: Dynamically creating a hash for keys()

2004-10-19 Thread Brad Greenlee
PerlMonks is a great place for questions like this: http://www.perlmonks.org/index.pl?node_id=30013 -b Jason Foster wrote: Can anyone help me to understand why this code refuses to compile? Even better, can anyone help fix it :) %hash = qw( fred filntstone barney rubble tom delong );

[golf] Tangled Tale Results

2004-06-29 Thread Brad Greenlee
],[$_15,($_4)+1]for unpackC*,¸ÈñéËëµîÄòw¶ª;f(1) Brad Greenlee (157) sub f{my($n,$s)[EMAIL PROTECTED];[EMAIL PROTECTED]30?print@t $n\n:$s{$n}?'':[EMAIL PROTECTED];for(1..2){f(vec('1516*92846,248.578/2-6+901/534',$n*2-$_,8)-42,$s)[EMAIL PROTECTED];f Congratulations, Terje! Again, sorry for the golf

[golf] Tangled Tale Leaderboard

2004-06-28 Thread Brad Greenlee
/rules.html Here are the current standings: 1. Georg Moritz - 150 2. Terje Kristensen - 156 3. Brad Greenlee- 158 4. Tobias Gödderz - 162 I've copied the challenge below in case you don't know what I'm talking about. Once again, I encourage people to check out the official perl golf site

Re: Golf challenge: Tangled Tale

2004-06-26 Thread Brad Greenlee
You're all right. My bad, but as I said, it's been a long time since I've been on this list. My apologies. We'll finish up this little contest and then leave the golfing for the official site. How about 11:59pm GMT on Monday the 28th as the deadline? Send your scores to me, and I'll send out

Re: error handling in perl modules

2004-06-25 Thread Brad Greenlee
Take a look at Exception::Class http://search.cpan.org/~drolsky/Exception-Class-1.19/lib/Exception/Class.pm -b Babichev Dmitry wrote: Hello, fwp. Could anybody provide the best practices of implementation the error handling in perl modules? Thank you in advance. Dmitry.

Re: Golf challenge: Tangled Tale

2004-06-24 Thread Brad Greenlee
, Jun 24, 2004 at 04:40:29AM +0200, Tobias G?dderz wrote: On Wed, 2004-06-23 at 20:15, Brad Greenlee wrote: First, my current code is down to 221. I got mine down to 213 now. I got mine down to 16. I also think that it's more exiting without knowing the solutions of the other golfers, isn't

Re: Golf challenge: Tangled Tale

2004-06-24 Thread Brad Greenlee
fun :) sorry for the the off-topic. P! Vladi. On Mon, 21 Jun 2004 00:34:39 +0200 Brad Greenlee [EMAIL PROTECTED] wrote: [rejoining this list after a too-long absence...forgive me if by some bizarre chance this or something similar has already appeared] Hey all... The following has consumed most

RE: The Santa Claus Golf Apocalypse

2001-12-05 Thread Brad Greenlee
What's really stumping me is that there has to be a shorter solution for wc.pl (mine is 23), but I haven't been able to get past the need for printf (at least, not for a shorter solution). Has anyone managed to do it without it? I also vote that we close this soon and unveil the winners. I have