$product{$name}[$i] is the option $i of product $name. keys %product is the list of product names. @{$product{$name}} is the list of options of product $name.