From: 7stud -- Date: 2008-05-02T18:34:15+09:00 Subject: Re: Extracting a value from an array Sandro Paganotti wrote: > I've compressed your loop into this: > > (headers.select{ |h| h[:name] == 'content-length' }.first)[:value] That seems pretty typical of ruby programmers: cram everything into one line and call it "clear". -- Posted via http://www.ruby-forum.com/.