* Albert Schlef <albertschlef / gmail.com> (11:02) schrieb: > I have the following array: > > headers = [ > { :name => 'user-agent', :value => 'blah blah' }, > { :name =>'content-type', :value => 'text/html' }, > { :name => 'pragma', :value => 'no-cache' }, > { :name =>'content-length', :value => '30' }, > { :name =>'content-type', :value => 'text/html' }, > ] > > Now, I want to extract the :value of the first header of a specific > :name. For example, I want to extract the :value of the 'content-type' > header. That's simply the wrong data structure for the task. So the question is: why not use a Hash? mfg, simon .... l