With perl it's easy to write:

$Q{$date}{$song_played} += 1

How I can accomplish the same thing with ruby?

Thanks!

http://pleac.sourceforge.net/pleac_ruby/index.html didn't help much
here.