bhushanQA has asked for the wisdom of the Perl Monks concerning the following question:
I am getting this error while running the above script "Can't locate object method "TIEHASH" via package "IniFiles" at ./ReadSGtest.pl line 7."#!/usr/bin/perl use strict; use warnings; use Config::IniFiles; my ( %ini_file, $ini_sect ); tie %ini_file, 'IniFiles', ( -file => "file1.txt"); foreach $ini_sect ( keys %ini_file ) { %$ini_sect = %{ $ini_file{$ini_sect} }; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't locate object method "TIEHASH" via package "IniFiles"
by Anonymous Monk on Mar 14, 2016 at 08:04 UTC | |
|
Re: Can't locate object method "TIEHASH" via package "IniFiles"
by marto (Cardinal) on Mar 14, 2016 at 08:05 UTC |