On 2006-08-23 21:55:11 +0200, dblack / wobblini.net said:

> Hi --
> 
> On Thu, 24 Aug 2006, Josselin wrote:
> 
>> I am not yet a big friend of reegxp.. and I don't actually know if I 
>> should use it or any other function
>> but I'd like to know the easiest path to do the following :
>> 
>> I get a string   person = 'Clara Mint" which is a full name
>> and I would like to find the object "id" in a collection using this  
>> full name :
>> 
>> people = [ ["id" => "1", "first" => "Jack", "last" => "Johnson"], ["id" 
>> => "2", "first" => "Ben", "last" => "Kenneth"], ["id" => "3", "first" 
>> => "Ken", "last" => "Olsen"], ["id" => "4", "first" => "Howard", "last" 
>> => "Wong"], ["id" => "5", "first" => "Clara", "last" => "Mint"], ["id" 
>> => "7", "first" => "Che", "last" => "Guevara"]]
>> 
>> any hint to start ?
> 
> I'm wondering whether your data structure is what you want.  Right now
> you've got an array of arrays of hashes.  Are you sure you don't just
> want an array of hashes?
> 
> 
> David
Your are right..
well, the problem is maybe less complicated that it seems..
the structure doesn't exist per se, all data are in a DB, I know that 
the full name is a concatenation of existing data in the DB (first + 
last) and I need to get the object.
it's an sql problem ( views...  )  sorry for raising up a non-ending story ;-))

joss