in reply to Read the csv file to a hash....

See Text::CSV, perldata and perlref


DWIM is Perl's answer to Gödel