Hi, On Fri, Feb 09, 2007 at 08:50:08PM +0100, Francesco Cecconi wrote: > > yes, OK, but if your insert a 0 on <label value> not work because [if ( 0 )]. > > Is not a package bug, but a Config::General cod implementation.
Wrong again, cf http://search.cpan.org/src/TLINDEN/Config-General-2.31/Changelog 2.14 - fixed bug reported by Francisco Olarte Sanz <[EMAIL PROTECTED]>, which caused _parse to ignore blocks with the name "0": <0> .. </0>, because it checked just if $block (the name between < and >) is true, and from the perl point of view "0" is not. Changed it to check for defined. Normally I avoid using 'defined' but in this case it will not be possible that $block contains the empty string, so defined is ok here. But now it concerns block label ;-) Sylvain
signature.asc
Description: Digital signature