Skip Menu |

This queue is for tickets about the Config-Std CPAN distribution.

Report information
The Basics
Id: 51573
Status: resolved
Priority: 0/
Queue: Config-Std

People
Owner: Nobody in particular
Requestors: jojo [...] aupaysdescrevettes.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.0.5
Fixed in: 0.007



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.
Subject: Re: [rt.cpan.org #51573] Problem with write_config in Config-Std-0.0.5 ?
Date: Tue, 17 Nov 2009 17:01:46 +1100
To: bug-Config-Std [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Hi Jojo Show quoted text
> Is there a problem with write_config in v0.0.5 ?
Yes, it was definitely a major bug. I believe I've fixed it now. Please try the attached alpha version of v0.0.6 and see if it works correctly for you. If you can confirm it fixed the problem, I'll upload it to CPAN. Thanks for the report, Damian PS: No need to apologise for your English skills: they are excellent!

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #51573] Problem with write_config in Config-Std-0.0.5 ?
Date: Tue, 17 Nov 2009 18:19:27 +0400
To: bug-Config-Std [...] rt.cpan.org
From: Jojo <jojo [...] aupaysdescrevettes.org>
damian@conway.org via RT a écrit : Show quoted text
> Yes, it was definitely a major bug. I believe I've fixed it now. > > Please try the attached alpha version of v0.0.6 and > see if it works correctly for you. If you can confirm > it fixed the problem, I'll upload it to CPAN. >
Hi, There is no problem with this new version 0.0.6 using Perl 5.10 & windows (but there's an extra blank line before the new key in the file). Show quoted text
> Thanks for the report, >
Ok, thanks for your software.
Subject: Re: [rt.cpan.org #51573] Problem with write_config in Config-Std-0.0.5 ?
Date: Wed, 18 Nov 2009 13:19:28 +1100
To: bug-Config-Std [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Show quoted text
> There is no problem with this new version 0.0.6 using Perl 5.10 & > windows (but there's an extra blank line before the new key in the file).
Thanks for confirming the fix, Jojo. The extra blank line is a feature: the module now tries to guess how you're laying out your configuration file, and emulate that for new keys. The new version should go up on CPAN in the next 24 hours. Damian