in reply to Can't locate object method "TIEHASH" via package "IniFiles"
tie %ini_file, 'IniFiles', ( -file => "file1.txt");
should be
tie %ini_file, 'Config::IniFiles', (-file => "file1.txt");
Also, the line %$ini_sect = %{ $ini_file{$ini_sect} }; won't work under strict, since $ini_sect is a string and can't be used as a hash reference. But I'm assuming your code example is just a test and you'll be fixing that anyway.
|
|---|