Skip Menu |

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

Report information
The Basics
Id: 22559
Status: new
Priority: 0/
Queue: Config-Simple

People
Owner: Nobody in particular
Requestors: sf [...] sf-itd.de
Cc:
AdminCc:

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



Subject: Config-Simple returns empty array instead of emtpy scalar
Date: Wed, 25 Oct 2006 10:10:11 +0200 (CEST)
To: bug-Config-Simple [...] rt.cpan.org
From: Sven Fröhlich - IT Dienstleistung <sf [...] sf-itd.de>
Hello, first of all i wish to say, that i'm very happy for your module to exist. I use it in some of my projects with great use. Now I stumbled over a bug/feature, with an unpredicted effect. I'm reading an ini-styled configuration with some blocks and keys. While most keys have values, some might have an empty value / no value. I have no option to avoid this, because it is user configurable from within my programm. If I try to read this (empty) key on the next start of the programm Config-Simple returns an array to my scalar variable instead of the predicted scalar. I've looked at the Simple.pm and found that you check for exactly (==) one existing value and return an array otherwise. Attached to this mail is a patch file with my changes Simple.pm to a more predictable manner, from my point of view. Please consider to integrate this change in any future version of Config-Simple. best regards Sven Fröhlich -- S.F. IT-Dienstleistung Mühlengrund 2 mob. +49 (0174) 951 37 40 38159 Vechelde fax. +49 (0174) 55 951 37 40 Erfolg hat nur, wer etwas tut, während er auf den Erfolg wartet. (Thomas A. Edison)

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