Subject: | Problem with write_config in Config-Std-0.0.5 ? |
Date: | Mon, 16 Nov 2009 18:53:58 +0400 |
To: | bug-Config-Std [...] rt.cpan.org |
From: | Jojo <jojo [...] aupaysdescrevettes.org> |
Hi,
Is there a problem with write_config in v0.0.5 ?
Trying this simple script :
use Config::Std;
read_config 'f:\info.des2' => my %config;
${$config{'Local'}}{'LocalTest'} = "testing";
write_config %config;
If the key LocalTest already exists in the file, no problem.
If the key doesn't exist, I get this message when writing the file to disk :
"Can't call method "ensure_gap" on an undefined value at
C:/Perl/site/lib/Config/Std.pm line 221."
(Using Perl 5.10 with an windows XP)
No problem with the same script with linux (perl 5.10) and Config-Std-0.0.4.
Thanks for your software, sorry for my bad english it's not my natural
language.