On Jul 30, 2008, at 23:36, Adam Shelly wrote: > On 7/28/08, Martin Boese <boesemar / gmx.de> wrote: > > I can't resist golf: I got Martin's solution down to 95 bytes (If you > take out the ascii column it's down to 71). > > i=0;$<.read.scan(/.{0,16}/m){puts"%08x0 "%i+$&.unpack('H4'*8)*' '+' | > '+$&.tr('^ -~','.');i+=1} That's pretty neat! I'd totally forgotten about that trick. The way you handle the counter is ;)-ish ;) -- # Mikael Høélund def method_missing(m, a=0) a + m.to_s[/[a-z]+/].size * 2; end p What is the meaning of life?