[Catalyst] Defining ARRAY in Config::General config
    Octavian Rasnita 
    octavian.rasnita at ssifbroker.ro
       
    Tue Sep 21 07:52:52 GMT 2010
    
    
  
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" <pau4o at kamennn.eu>
To: "The elegant MVC web framework" <catalyst at 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 <hippich at 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 at 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/ 
    
    
More information about the Catalyst
mailing list