Write to a CSV file from a hash perl
问题 I have a program that at the moment reads from FILE 1 looking like the one below and matching certain characters. e.g Type, Fruit, Description, quantity tropical, banana, tasty and yummy, 5 tropical, grapefruit, bitter and not yummy, 2 ... and so on First of all I wanted to create hash of hashes for each 'Type', 'Fruit', 'Description', 'Quantity' and store the different values in the reference hashes. That works fine with the code below. use strict; use warnings; use Data::Dumper; use Text: