At 16:51 13.02.2002 -0600, Stathy G. Touloumis wrote:
> > The easiest thing would be to use Config, and do:
> >
> > $module =~ s[::][$Config{'path_sep'}]g;
> >
> > Right?
>
>Maybe not : ) When checking on 2 linux systems I got a path seperator of
>':'. Can you let me know if you get similar results?
>
I'm getting the same problem here. It seems like $Config{path_sep} has been
misunderstood: it gives ':' on Unix and ';' on Windows, so I believe it
means the separator between different items in your PATH
(/usr/bin:/usr/local/bin etc..).
I think what you need is File::Spec.
Use this instead:
$module = File::Spec->catfile(split /::/, $module);
That'll be portable.
--
Per Einar Ellefsen
[EMAIL PROTECTED]