Posts Tagged ‘Catalyst’

Wednesday 11. February, 2009

Adam Kennedy has released the Heaviest modules on CPAN list, showing that MojoMojo is currently the application with the biggest dependency graph on CPAN. This proves that we are firm opponents of the “Not Invented Here”-syndrome. :) I’ve volunteered lbr to do the FreeBSD packages, anyone interested in packaging it for debian? Feel free to contact me.

Sunday 8. February, 2009

Seems Matt and Kieren has got something interesting going on. Now we really need to get Catalyst 5.8 out there :-)

Sunday 1. February, 2009

Often, I need to write command line scripts that access my apps’ data models. With Catalyst, one way to do this is to to load the actual application, like

use iusethis;

Then I can access my models like iusethis->model(‘DBIC::Person’) . However, all I really need is to get the application configuration, and loading a big application is a lot of overhead. Just using Config::Any isn’t a good solution tho, since it does not handle _local files properly, among other thing. However, with Config::JFDI there’s a better way.

use Config::JFDI;
my $jfdi = Config::JFDI->new(name => "iusethis");
my $config = $jfdi->get;
my $schema = iusethis::Schema->connect( @{$config->{'Model::DBIC'}->{'connect_info'}})
    or die "Failed to connect to database";