Subject: | @Config::IniFiles::errors get concatenated on a malformed ini file |
Date: | Tue, 11 Nov 2014 12:00:26 +0000 |
To: | bug-Config-IniFiles [...] rt.cpan.org |
From: | "Johann 'Myrkraverk' Oskarsson" <johann [...] myrkraverk.com> |
Hi,
With an ini file consisting only of the following malformed section
name [huh, with or without newlines, error messages get concatenated
together. Like so:
$ ./initest.pl
Line 2 in file /path/to/initest.ini is mal-formed:
[huhEmpty file treated as error at ./initest.pl line 10.
initest.ini:
[huh
initest.pl:
#!/usr/bin/perl
use warnings;
use strict;
use Config::IniFiles;
my $config_file = '/path/to/initest.ini';
my $config = Config::IniFiles->new( -file => $config_file )
or die @Config::IniFiles::errors;
--
Johann
I'm not from the internet, I just work there.