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

Re: [MacPerl] locating files in @INC



At 10:46 +0100 2000.12.08, Axel M. Roest wrote:
>Howdy,
>
>>=================================
>>require "./html_web_store.setup";
>>=================================
>
>Use absolute paths here. I think the current working directory for a
>script on the Mac is the location of the MacPerl *interpreter*, not
>the location of the script running. The Mac has no real concept of
>'current working directory'.

Yes, it does.  If the script is saved to disk, then the current directory
is the location of that script.  Unless you are using the MPW tool, in
which case the current directory is the directory you are currently in with
the MPW shell.

Also, note that MacPerl does not understand "./" for paths.  That is an
incorrect syntax for Mac OS.

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