From: Max Muermann Date: 2006-12-06T19:44:06+09:00 Subject: Re: GOLF: hex string to dotted quad > > Shorter still : > > hex_ip.scan(/../).map{|i|i.hex}*"." > Or, based on Carlos' optimisation (and I use the term very loosely in the context of golfing): hex_ip.scan(/../).map{$&.hex}*"." Saves another two characters... and looks horribly perlish. Max