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/ +

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to