Skip Menu |

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

Report information
The Basics
Id: 68554
Status: resolved
Priority: 0/
Queue: Config-IniFiles

People
Owner: Nobody in particular
Requestors: toby.allsopp [...] navman.co.nz
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.63
Fixed in: (no value)



Subject: Parameters with empty values not written to file
If you create a new value where the value is the empty string, that parameter is omitted from the file when writing. The problem is in the call to _OutputParam, where split is called on $val if it is not an array ref. Split on an empty string always returns an empty array, so then _OutputParam writes nothing.
Hi Toby, On Mon May 30 21:15:01 2011, tobyallsopp wrote: Show quoted text
> If you create a new value where the value is the empty string, that > parameter is omitted from the file when writing. > > The problem is in the call to _OutputParam, where split is called on > $val if it is not an array ref. Split on an empty string always returns > an empty array, so then _OutputParam writes nothing.
Thanks for your report. I'll investigate that later on. In the meanwhile, you may wish to provide a test case as a t/*.t file and/or a patch. Regards, -- Shlomi Fish
Fixed in release 2.67 . Thanks for the report. Regards, -- Shlomi Fish