in reply to
Re^2: hash of hashes
in thread hash of hashes
At this point in the code, $d is a fruit, $i is an index (a number), and $line[$i] is a color (AFAIU your code). Why would you want to associate
a number with a fruit and a color with a number ? Please take a look at Re^3: hash of hashes.
Also, try using Data::Dumper or Data::Dump (my favorite) for looking at data structures — much more convenient.
And again, please take a look at perldsc.