Le 25 mars ? 10:29, Adam Nelreth a ?crit :

> but this doesn't work :/

It should.  Show us your whole code, not just snippets - the problem
lies somewhere else.

>> h = Hash.new(0)
=> {}
>> if h.has_key?("1.2.3.4")
>>   puts "In table."
>>   else
?>     h["1.2.3.4"] = 1
>>   end
=> 1
>> if h.has_key?("1.2.3.4")
>>   puts "In table."
>>   else
?>     h["1.2.3.4"] = 1
>>   end
In table.
=> nil
>> h.has_key?("1.2.3.4")
=> true

Fred
-- 
Hey God, there's nothing left for me to hide
I lost my ignorance, security and pride
I'm all alone in this fucking world you must despise   (Nine Inch Nails,
Hey God, I believed your promises, your promises and lies  Terrible Lie)