|Problems? Is your data what you think it is?|
Re^2: Tk::Entry not updating when textvariable changes.by rcseege (Pilgrim)
|on Oct 16, 2006 at 23:40 UTC||Need Help??|
I'm suspicious of Config::IniHash myself... I'm operating under the assumption that the $cini_global is a hashRef, and I know that getOpenFile returns a scalar -- in this case a selected filename. Here's a shortened example:
I suspect there's something else going on outside of the shown code. Perhaps Config::IniHash creates something different than what it appears
Update: It would seem that Config::IniHash does some pretty interesting things under the hood and isn't exactly what it seems. I haven't looked at all the code, but my guess is that the two times you use it, the internal references are different. I've added a second example that shows how I'd work around it if I had to use Config::IniHash, which I'm not certain that I would.
<crotchety voice>Config::IniHash seems a bit too clever for its own good to me</crotchety voice> Still, its code makes for pretty interesting reading ;-)
Example 2 : In the second example I was able to reprodce the reported problem. The code shows how I worked around it.
config file, containing:
Script with workaround: