[Catalyst] Config::General question
Matt S Trout
dbix-class at trout.me.uk
Sun Jun 11 15:57:35 CEST 2006
Kiki wrote:
> So you got me looking into C::G and yes, I'm too lazy to dig into the
> docs. Anyways short question to which I found no obvious answer:
>
> Can C::G syntax express just an array of arrays (used to populate data
> tables via DBIC schema):
>
> [
> [ qw/artistid name/ ],
> [ 1, 'Popular Band' ],
> [ 2, 'Indie Band' ],
> ]
>
> so that I can just throw it into $schema->populate($moniker, $data); ?
If I was to use Config::General for this (though I think I'd use CSV or TSV,
tbh), I think I'd use a format like
<Row>
ArtistID 1
Name "Popular Band"
</Row>
...
and do it like that.
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list