Eric Wilhelm wrote:
> If we're voting, I would prefer to avoid having non-modules in @INC.
>   

I agree.  How about using Module::Install to install files to a known
location (auto), and then File::ShareDir to get at those files?  I have
had pretty good success with this approach.  (My CatalystX::Starter on
CPAN does this, and people don't seem to be having any problems with it.)

FWIW, Catalyst takes the approach of looking at $INC{"Your/App.pm"} to
find the path to your main application class, and then uses that path to
look for shared resources (TT templates for example).  You might like
that approach best.

Full details are in &Catalyst::Util::home:

http://search.cpan.org/src/MRAMBERG/Catalyst-Runtime-5.7011/lib/Catalyst/Utils.pm

Hope this helps.

Regards,
Jonathan Rockway

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to