[Catalyst] includes in catalyst

Matt S Trout dbix-class at trout.me.uk
Wed May 23 01:10:38 GMT 2007


On Tue, May 22, 2007 at 05:14:53PM -0400, John Goulah wrote:
> Is it better to put module "use" statements within each controller class
> they are used in, or at some more global level , and if so where is
> suggested?

In each controller class a module's used.

This is more flexible and makes code re-use easier.

It's the perl way - anything else is just asking for trouble later :)

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 



More information about the Catalyst mailing list