[Catalyst] cross-platform locations

Carl Franks fireartist at gmail.com
Fri Feb 24 09:44:04 CET 2006


On 23/02/06, Jason Kohles <email at jasonkohles.com> wrote:
>
> This change would break a lot of currently working code....
>
> From the documentation for lib.pm:
>
>        In order to keep lib.pm small and simple, it only works with Unix
>        filepaths.  This doesn't mean it only works on Unix, but non-Unix users
>        must first translate their file paths to Unix conventions.
>

Ok, that's wierd, that says it only works with unix filepaths (forward
slashes), yet I've just confirmed that using backslashes does work on
my machine.
I won't loose sleep about it though, as long as non-unix platforms
will work with forward slashes, that's fine.

What about the idea of using "File::Spec->updir()" to replace the ".." though?

maybe,
use lib sprintf "%s/%s/lib", $FindBin::Bin, File::Spec->updir();

Carl



More information about the Catalyst mailing list