Docunext


DBIx and SimpleXML

November 19th, 2009

I tried this in a Catalyst powered application, using DBIx and SimpleXML:

sub index :Path :Args(0) {
    my ($self, $c) = @_;
    my $i = 0;
    my $transactions = [$c->model('DB::pbgeneralledger')->search({}, {})];
    $c->stash->{template} = 'ledger.xsl';
    $c->stash->{xml} = XMLout($transactions);
    $c->forward( $c->view('XSLT') );
}

I got an error I'd never seen before:

circular data structures not supported

I found this page about Perl data structures:

Looks like a good read.

Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022