The problem appears when the array should have just a single item, because
in that case Config::General reports it as a scalar value.
I don't know if there is a better way of defining a single-item array with
Config::General, but I found a workaround that may work. We can use
something like:
foo bar
foo
This creates an array with 2 elements and the last one is undef.
--Octavian
----- Original Message -----
From: "Kamen Naydenov" <pa...@kamennn.eu>
To: "The elegant MVC web framework" <catalyst@lists.scsys.co.uk>
Sent: Tuesday, September 21, 2010 9:05 AM
Subject: Re: [Catalyst] Defining ARRAY in Config::General config
On Tue, Sep 21, 2010 at 07:29, Pavel A. Karoukin <hipp...@gmail.com>
wrote:
Hello,
I am using Catalyst::Plugin::Mail and want to define email config in
myapp.conf. But C::P::Mail expects email config variable to be array ref.
How I can assign array value to config variable in myapp.conf?
Multiple rows with same name and different values form array in myapp.conf
For example:
room 7
room 9
room 13
Example is in Config::General syntax
best regards
Kamen
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive:
http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/