------art_15630_30365777.1212785457799
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Fri, Jun 6, 2008 at 5:04 AM, Robert Klemme <shortcutter / googlemail.com>
wrote:

>
> hist  ash.new {|h,k| h[k]}
> DATA.each do |line|
>  name, age  ine.split /,\s*/
>  hist[Integer(age)] << name rescue nil
> end


or

  hist  ATA.inject(Hash.new {|h,k| h[k]}) do | h, line |
               name, age  ine.split /,\s*/
               h[Integer(age)] << name rescue nil
               h
            end

Tsk, tsk, Robert you're not  living up to your signature! <G>

-- 
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

------art_15630_30365777.1212785457799--