[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] locating files in @INC



At 22:46 +0100 2000.12.09, Bart Lateur wrote:
>On Fri, 8 Dec 2000 09:57:32 -0500, Chris Nandor wrote:
>
>>Also, note that MacPerl does not understand "./" for paths.  That is an
>>incorrect syntax for Mac OS.
>
>I thought the same thing. But then I remembered, maybe incorrectly, that
>this magic DOES work for do/require/use, but for nothing else. Am I
>right? I can't check right now.

Essentially, no, it does not work.  But in some cases it might.  :-)  In
require/do (not use, since use takes a package name, not a path), a "/" is
accepted as a path separator.  But this causes more confusion than it is
worth to tell anyone, so forget I am telling it to you.  Just go on
believing you cannot use "/" as a path separator in MacPerl and you will be
just fine.

Note, however, that "./" to mean current directory never works.

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org