Subject: | -String => \@array problem |
Date: | Mon, 18 Feb 2008 12:10:42 +0100 |
To: | <bug-Config-General [...] rt.cpan.org> |
From: | "Conway Allen" <Allen.Conway [...] atosorigin.com> |
Message body is not shown because sender requested not to inline it.
Hello,
If you do a new Config::General(-String => \@array) you get back an
error message saying "Parameter -String must be a SCALAR", which is
contrary to what is indicated in the documentation. To get it to accept
an array reference I made the following changes:
298,299c298,300
< elsif(ref(\$conf{-String}) eq 'ARRAY') {
< $self->{StringContent} = join '\n', @{$conf{-String}};
---
Show quoted text
> elsif(ref($conf{-String}) eq 'ARRAY') { # changed
18/feb/2008
Show quoted text> $self->{StringContent} = join "\n", @{$conf{-String}}; # changed
18/feb/2008
Show quoted text> delete $conf{-String}; # Added
18/feb/2008
Perl 5.8.8
Config::General 2.37
linux 2.6.22-3-686
[I forgot to provide that information in my previous e-mail concerning
interpolation... my apologies]
best regards,
Allen Conway.