Skip Menu |

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

Report information
The Basics
Id: 65186
Status: resolved
Priority: 0/
Queue: Config-File

People
Owner: Nobody in particular
Requestors: Thorsten.Dombach [...] mabunta.de
Cc:
AdminCc:

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



Subject: Bug
Date: Thu, 27 Jan 2011 13:31:37 +0100
To: "bug-Config-File [...] rt.cpan.org" <bug-Config-File [...] rt.cpan.org>
From: Thorsten Dombach <Thorsten.Dombach [...] mabunta.de>
Hello, I found a bug in Config-File v1.50 I use: [root@develop ~]# perl -v This is perl, v5.8.8 built for i386-linux-thread-multi [root@develop ~]# uname -a Linux develop 2.6.18-194.26.1.el5 #1 SMP Tue Nov 9 12:54:40 EST 2010 i686 i686 i386 GNU/Linux My conf file looks like this: group = xxx x-y xxx[master] = ok x-y[master] =notok my test program:
Subject: Recall: Bug
Date: Thu, 27 Jan 2011 13:32:07 +0100
To: "bug-Config-File [...] rt.cpan.org" <bug-Config-File [...] rt.cpan.org>
From: Thorsten Dombach <Thorsten.Dombach [...] mabunta.de>
Thorsten Dombach would like to recall the message, "Bug".
Subject: Bug
Date: Thu, 27 Jan 2011 13:34:46 +0100
To: "bug-Config-File [...] rt.cpan.org" <bug-Config-File [...] rt.cpan.org>
From: Thorsten Dombach <Thorsten.Dombach [...] mabunta.de>
Hello, I found a bug in Config-File v1.50 I use: [root@develop ~]# perl -v This is perl, v5.8.8 built for i386-linux-thread-multi [root@develop ~]# uname -a Linux develop 2.6.18-194.26.1.el5 #1 SMP Tue Nov 9 12:54:40 EST 2010 i686 i686 i386 GNU/Linux My conf file looks like this: group = xxx x-y xxx[master] = ok x-y[master] =notok ===================================== my test program: #!/usr/bin/perl use Data::Dumper; use Config::File; my $config_hash = Config::File::read_config_file("/home/thorsten.dombach/exp2dbe/source/t.conf"); print "CONFIG:\n\n\n"; print Dumper $config_hash; print "ENDE\n"; ======================== My output: CONFIG: $VAR1 = { 'group' => 'xxx x-y', 'xxx' => { 'master' => 'ok' } }; ENDE =========================== As you can see in my example, "-" are not supported in the names. In the documentation it is mentioned that "-" is supported. Please give me a hint, if it is possible to change this. Thanks. Regards, Thorsten Dombach
Fixed in version 1.5.