[Catalyst] Defining ARRAY in Config::General config

Emanuele Zeppieri emazep at gmail.com
Tue Sep 21 13:06:27 GMT 2010


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 );



More information about the Catalyst mailing list