From: "Peña, Botp" Date: 2006-02-23T11:38:33+09:00 Subject: setting nil to zero Hi, is there a setting to set nil to zero? something like $NIL=0, then set it back again to $NIL=nil... reason is i have quite a number of codes like ff s.each do |w| f[w] = 0 unless f[w] #i want to kill this lne since it does not jive with my pseudocode f[w] += 1 end thanks and kind regards -botp