[Catalyst] create controller helper

Kiffin Gish kiffin.gish at planet.nl
Fri Jan 8 19:48:54 GMT 2010


When I call 'script/myapp_create.pl controller Base' it creates the
module Base.pm with the following statement:

BEGIN { extends 'Catalyst::Controller'; }

What's the advantage of doing this? Are there any times one would NOT
want to place it within BEGIN?

Also, I see that the following is not included by default:

use namespace::clean -except => 'meta';

Shouldn't that be the case? Again what are the advantages/disadvantages?

Thanks alot in advance.

-- 
Kiffin Gish <Kiffin.Gish at planet.nl>
Gouda, The Netherlands





More information about the Catalyst mailing list