[Catalyst] cross-platform locations

Jason Kohles email at jasonkohles.com
Fri Feb 24 00:32:05 CET 2006


On 2/23/06, Carl Franks <fireartist at gmail.com> wrote:

> 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.
>

This change would break a lot of currently working code....



More information about the Catalyst mailing list