At 13:08 Uhr +0900 17.08.2001, KIMURA Takeshi wrote:
>Hi,
>
>I am using MacPerl 5.2.1a1 and having some problem with File::
>Spec module.
>
>If I run this script
> use File::Spec::Functions;
> print File::Spec->abs2rel( catdir( rootdir, 'a' ), rootdir ),
>"\n";
>
>I get,
> ::a:
>
>instead of
> a:
>
>which is what I expect.
>
>
>If I run this
> use File::Spec::Functions;
> print File::Spec->abs2rel( catdir( rootdir, 'a' ) ), "\n";
>
>I get an error.
> # Undefined subroutine &File::Spec::Mac::cwd called.
> File 'Macintosh HD:dbNET:Tools:MacPerl f:site_perl:File:Spec:
>Mac.pm'; Line 331
>
>Is this what's expected?
>
>--
>KIMURA Takeshi
>mailto:[EMAIL PROTECTED]
You are right, abs2rel() (and other methods/functions) in File::Spec::Mac version 1.2
don't always do what they are expected to do. I'm currently working on a patch for it.
The result for
abs2rel( catdir( rootdir, 'a' ), rootdir );
will and should be ":a:".
Best regards,
--Thomas
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com