From: "Peña, Botp" Date: 2006-02-23T12:46:37+09:00 Subject: Re: setting nil to zero Logan Capaldo [mailto:logancapaldo@gmail.com] : # f[w] = f[w].to_i + 1 i felt like being the dumbest guy on earth . this one works for both arrays and hashes. thank you for the uber cool tip, ruby hacker logan (though i have to squinch my eyes a bit for that quick hack :) thanks to all too and kind regards -botp