[Catalyst] cross-platform locations

Carl Franks fireartist at gmail.com
Thu Feb 23 09:51:12 CET 2006


This is some code from the catalyst-generated scripts:

use FindBin;
use lib "$FindBin::Bin/../lib";


I think it would be better written as:

use File::Spec;
use FindBin;
use lib File::Spec->catdir( $FindBin::Bin, File::Spec->updir(), 'lib' );

Ok, maybe nobody's currently using catalyst on mac <= 9 or vms, but
it'd be nice if they could.

I'm currently spending a lot of time submitting RT bugs for modules
that don't play nice on windows, so I _really_ don't like hardcoded
paths now ;)

Opinions?

Carl



More information about the Catalyst mailing list