I'm using Moose with MooseX::SimpleConfig
I guess it'd be nicer if the configuration module (Config::Any) or
even MooseX::SimpleConfig role would do this instead of having to do

sub BUILD {
    my $self = shift;
    $self->method( [ split /,/, $self->method ] );
}


On Wed, Oct 29, 2008 at 8:15 PM, Jonathan Rockway <[EMAIL PROTECTED]> wrote:
>
> * On Wed, Oct 29 2008, Sawyer X wrote:
> > I'm trying to set a configuration file with Config::General and
> > apparently to set an Array, I need to the following example:
> > <example>
> >     lamp = linux
> >     lamp = apache
> >     lamp = mysql
> >     lamp = perl
> > </example>
> >
> > When using keys that are long, it's simply a copy paste issue. Isn't
> > the a more comfortable way?
> >
> > These don't work either:
> >   <lamp>
> >     linux, apache, mysql, perl
> >   </lamp>
>
> What is stopping you from post-processing this into the data you want?
> You are but a simple "split" away from having this syntax work.
>
> Regards,
> Jonathan Rockway
>
> --
> print just => another => perl => hacker => if $,=$"

Reply via email to