in reply to Can't locate object method "TIEHASH" via package "IniFiles"
Try replacing:
tie %ini_file, 'IniFiles', ( -file => "file1.txt"); [download]
with:
tie %ini_file, 'Config::IniFiles', ( -file => 'file1.txt' ); [download]
from the module documentation.