I am a perl person and I have made hashes like this for awhile:
my %date;
#Assume the scalars are called with 'my' earlier
$date{$month}{$day}{$hours}{$min}{$sec}++
Now I am learning ruby and I have so far found that using this tree is the way to do many keys and a value. Is there any way to use the simple format that I use with perl using one line?
@date = {
month => {
day => {
hours => {
min => {
sec => 1
}
}
}
}
}