[Catalyst] How to pass vars to modules
autarch at urth.org
Fri Apr 27 01:32:14 GMT 2007
On Thu, 26 Apr 2007, RA Jones wrote:
> Dave Rolsky wrote:
>> On Thu, 26 Apr 2007, John Napiorkowski wrote: The original post asked
>> about things like loading modules which export functions. That has
>> nothing to do with your controller, and asking Catalyst to load such
>> modules via "use Catalst qw( +Some::Module )" is pretty gross.
> Just for information, why do you say that? The tutorial suggests doing just
Doing that to load non-Catalyst plugins buys you nothing, and obscures how
modules are loaded. For example, when I want to find all the modules I'm
using, I usually do something like this:
grep -r '^use '
Then I might run that through sort and uniq to trim the list.
Why add yet another way to load modules? It's not like passing module
names to catalyst like that will do something different.
Where in the tutorial does it suggest you load non-Catalyst modules like
Your guide to all that's veg. My book blog
More information about the Catalyst