Skip Menu |

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

Report information
The Basics
Id: 5848
Status: resolved
Priority: 0/
Queue: Config-General

People
Owner: tlinden [...] cpan.org
Requestors: dirk-jan [...] selwerd.nl
Cc:
AdminCc:

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

Attachments
bugreport-config-general-2.26.tgz



Subject: SaveConfig uninitialized value in concatenation
The error I am expierencing seems to come down to: Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.8.0/Config/General.pm line 970. The attached bug.pl file + config file pollhosts.cfg should reproduce the bug. I am a afraid that I didn't manage to write a patch for this. perl version: This is perl, v5.8.0 built for i386-linux-thread-multi (with 1 registered patch, see perl -V for more detail) OS version: Red Hat Linux release 9 (Shrike) uname -a Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
Download bugreport-config-general-2.26.tgz
application/x-compressed 985b

Message body not shown because it is not plain text.

From: Dirk-Jan Faber
[guest - Wed Mar 31 04:12:49 2004]: Show quoted text
> The error I am expierencing seems to come down to: > Use of uninitialized value in concatenation (.) or string at > /usr/lib/perl5/site_perl/5.8.0/Config/General.pm line 970. > > The attached bug.pl file + config file pollhosts.cfg should reproduce > the bug. I am a afraid that I didn't manage to write a patch for this. > > perl version: > This is perl, v5.8.0 built for i386-linux-thread-multi > (with 1 registered patch, see perl -V for more detail) > > OS version: Red Hat Linux release 9 (Shrike) > uname -a > Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 > i686 i686 i386 GNU/Linux
What seems to be the problem is that a configuration like: <example.com> </example.com> triggers the error. The quick work around is using: example.com instead. Though this workaround works, it would be nice to have the first notation work as well.
From: jjgreen [...] employees.org
This seems to fix the issue: 970c970,971 < $config_string .= $this->_store($level + 1, %{$line}); --- Show quoted text
> $config_string .= $this->_store($level + 1, %{$line}) > if ( keys %$line );
this bug has already been solved in version 2.27.