[Catalyst] How to pass vars to modules

RA Jones ra.jones at dpw.clara.co.uk
Thu Apr 26 20:09:58 GMT 2007

Hi all,

I've started using the module Sort::Key, which needs its methods passing 
at the 'use' stage, eg:

use Sort::Key qw/keysort/;

That means I can't declare it in MyApp.pm along with other included 
modules eg:

use Catalyst qw/-Debug Static::Simple DefaultEnd +Sort::Key/;

So I'm declaring it in all my controllers that need to do sorts, which 
is repetitive and probably not the best way to do it. Is there a 
standard way of handling modules like this (Date::Calc is another)?
Richard Jones
Leeds, UK
mailto:ra.jones at dpw.clara.co.uk

More information about the Catalyst mailing list