in reply to Re^5: What CPAN modules are "good reads"?
in thread What CPAN modules are "good reads"?

You're right, the work being done by import() is pretty useful, but it could be done somewhere else -- maybe setup(), or a separate call. For example:
package MyApp; use strict; use warnings; use base 'Catalyst'; MyApp->config( home => '/path/to/my/home', root => '/path/to/my/home/root' ); MyApp->setup(qw/-Debug -Engine=HTTP Email Static/); 1;

Replies are listed 'Best First'.
Re^7: What CPAN modules are "good reads"?
by sri (Vicar) on Jun 21, 2005 at 14:13 UTC
    Muahaha...funny, you just found out how the Perl6 port of Catalyst handles this! :)
Re^7: What CPAN modules are "good reads"?
by Hansen (Friar) on Jun 28, 2005 at 16:39 UTC

    The above syntax will work with next release of Catalyst, in addition to the 'old' way.