NAME Maypole::Loader - Require all available model class modules SYNOPSIS package BeerDB; use base qw(Apache::MVC Maypole::Loader); BeerDB->setup('dbi:Pg:dbname=beerdb', 'myuser', 'mypass'); BeerDB->load_model_classes; DESCRIPTION Requires all available model class modules for you. So you can just do this: package BeerDB; use base qw(Apache::MVC Maypole::Loader); BeerDB->setup('dbi:Pg:dbname=beerdb', 'myuser', 'mypass'); BeerDB->load_model_classes; Instead of this: package BeerDB; use base qw(Apache::MVC Maypole::Loader); BeerDB->setup('dbi:Pg:dbname=beerdb', 'myuser', 'mypass'); BeerDB::Brewery->require; BeerDB::Beer->require; BeerDB::Handpump->require; BeerDB::Pub->require; AUTHOR Sebastian Riedel, "sri@oook.de" LICENSE This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.