From: Carl Drinkwater Date: 2006-12-06T19:12:53+09:00 Subject: Re: GOLF: hex string to dotted quad > hex_ip.gsub(/../) {|s| "#{s.hex}."}[0..-2] > > The deletion of the trailing '.' is so ugly... but it's a leetle bit > shorter ;) Shorter still : hex_ip.scan(/../).map{|i|i.hex}*"." -- Regards, Carl Drinkwater | 29degrees Ltd 29degrees.co.uk - Bespoke Web Application Development. codegolf.com - Can you craft the smallest code?