Re: [Catalyst] Defining ARRAY in Config::General config

2010-10-08 Thread Alexander Hartmaier
If you're referring to Catalyst::Plugin::Email you shouldn't use that any more as mailing doesn't need to be a plugin but a view. Try Catalyst::View::Email(::Template) -- Best regards, Alex Am Dienstag, den 21.09.2010, 06:29 +0200 schrieb Pavel A. Karoukin: Hello, I am using

Re: [Catalyst] Defining ARRAY in Config::General config

2010-10-08 Thread Denny
On Fri, 2010-10-08 at 19:46 +0200, Alexander Hartmaier wrote: Am Dienstag, den 21.09.2010, 06:29 +0200 schrieb Pavel A. Karoukin: 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

Re: [Catalyst] Defining ARRAY in Config::General config

2010-09-21 Thread Kamen Naydenov
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?

Re: [Catalyst] Defining ARRAY in Config::General config

2010-09-21 Thread Octavian Rasnita
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

Re: [Catalyst] Defining ARRAY in Config::General config

2010-09-21 Thread Andrew Rodland
On Tuesday, September 21, 2010 02:52:52 am Octavian Rasnita wrote: 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,

Re: [Catalyst] Defining ARRAY in Config::General config

2010-09-21 Thread Octavian Rasnita
something? Thanks. --Octavian - Original Message - From: Andrew Rodland and...@cleverdomain.org To: The elegant MVC web framework catalyst@lists.scsys.co.uk Sent: Tuesday, September 21, 2010 11:27 AM Subject: Re: [Catalyst] Defining ARRAY in Config::General config On Tuesday, September

Re: [Catalyst] Defining ARRAY in Config::General config

2010-09-21 Thread Emanuele Zeppieri
On Tue, Sep 21, 2010 at 2:14 PM, Octavian Rasnita octavian.rasn...@ssifbroker.ro wrote: Hi Andrew, I tried: C:\Documents and Settings\Teddy perl -MConfig::General -e print $Config::General::VERSION 2.49 #The program: use Config::General; use Data::Dumper; my $conf =

Re: [Catalyst] Defining ARRAY in Config::General config

2010-09-21 Thread Pavel A. Karoukin
On Tue, Sep 21, 2010 at 8:06 AM, Emanuele Zeppieri ema...@gmail.com wrote: On Tue, Sep 21, 2010 at 2:14 PM, Octavian Rasnita octavian.rasn...@ssifbroker.ro wrote: Hi Andrew, I tried: C:\Documents and Settings\Teddy perl -MConfig::General -e print $Config::General::VERSION 2.49

Re: [Catalyst] Defining ARRAY in Config::General config

2010-09-21 Thread Emanuele Zeppieri
On Tue, Sep 21, 2010 at 3:30 PM, Pavel A. Karoukin pa...@yepcorp.com wrote: On Tue, Sep 21, 2010 at 8:06 AM, Emanuele Zeppieri ema...@gmail.com wrote: On Tue, Sep 21, 2010 at 2:14 PM, Octavian Rasnita octavian.rasn...@ssifbroker.ro wrote: Hi Andrew, I tried: C:\Documents and

Re: [Catalyst] Defining ARRAY in Config::General config

2010-09-21 Thread Pavel A. Karoukin
On Tue, Sep 21, 2010 at 8:53 AM, Emanuele Zeppieri ema...@gmail.com wrote: On Tue, Sep 21, 2010 at 3:30 PM, Pavel A. Karoukin pa...@yepcorp.com wrote: On Tue, Sep 21, 2010 at 8:06 AM, Emanuele Zeppieri ema...@gmail.com wrote: On Tue, Sep 21, 2010 at 2:14 PM, Octavian Rasnita

Re: [Catalyst] Defining ARRAY in Config::General config

2010-09-21 Thread Octavian Rasnita
From: Emanuele Zeppieri ema...@gmail.com To obtain single value arrays with the syntax in question, the above line should be: my $conf = Config::General-new( -ConfigFile = 'config.conf', -ForceArray = 1 ); Aa, thanks. Octavian ___ List:

Re: [Catalyst] Defining ARRAY in Config::General config

2010-09-21 Thread Andrew Rodland
On Tuesday, September 21, 2010 08:30:43 am Pavel A. Karoukin wrote: On Tue, Sep 21, 2010 at 8:06 AM, Emanuele Zeppieri ema...@gmail.com wrote: On Tue, Sep 21, 2010 at 2:14 PM, Octavian Rasnita my $conf = Config::General-new( -ConfigFile = 'config.conf', -ForceArray = 1 ); How I can pass

[Catalyst] Defining ARRAY in Config::General config

2010-09-20 Thread Pavel A. Karoukin
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? Regards, Pavel ___ List: