That $rec was a typo. I have edited the code again. After I tried using Data::Dumper as you said I am getting the following output. I want to solve the problem using the HoH approach only so I have not used Config::Inifiles.
$var1 = {};In reply to Re^4: Parse a file and store it in hash of hashes
by Sonali
in thread Parse a file and store it in hash of hashes
by Sonali
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |