[Catalyst] Defining ARRAY in Config::General config

Emanuele Zeppieri emazep at gmail.com
Tue Sep 21 13:53:25 GMT 2010


On Tue, Sep 21, 2010 at 3:30 PM, Pavel A. Karoukin <pavel at yepcorp.com> wrote:

> On Tue, Sep 21, 2010 at 8:06 AM, Emanuele Zeppieri <emazep at gmail.com> wrote:
>>
>> On Tue, Sep 21, 2010 at 2:14 PM, Octavian Rasnita
>> <octavian.rasnita at 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 = Config::General->new('config.conf');
>>
>> 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 );
>>
>
> How I can pass this -ForceArray to Config::General in my catalyst app?

http://search.cpan.org/~bricas/Catalyst-Plugin-ConfigLoader-0.30/lib/Catalyst/Plugin/ConfigLoader.pm#DESCRIPTION



More information about the Catalyst mailing list