in reply to Re: Error with IniFile and Config::Ini
in thread Error with IniFile and Config::Ini

I don't think the debugger could really have helped me here... I found the source of the error message (No such file or directory)... Theres a file test (-e) used in the open method in both of the modules. However, it doesn't explain those warnings from Tie:IxHash or the fact that $ini->put() returns false... Is there something wrong with Tie::IxHash's way of doing splice?

Sample from the open sub:
sub open { my ($self, $file, %args) = @_; if (defined $file) { $self->{file} = $file; } else { $file = $self->{file}; } # No need to do anything if this is a new file. return 1 unless(-e $file)



-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT d- s:++ a--- C++++ UL P+++>++++ L+ E- W++>+++ N !o K- w+ O---- M-- V--
PS PE Y- PGP t++(+++) 5(+++)++++ X R+@ tv+ b+++ DI+ D- G e->+++ h! r-- y-
------END GEEK CODE BLOCK------
Translate

"Weird things happen, get used to it."

Flame ~ Lead Programmer: GMS