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

Re: [MacPerl] Using ".."



At 20:05 -0400 7/12/99, Paul J. Schinder wrote:
> On Mon, Jul 12, 1999 at 07:37:37PM -0400, Jacob Weber wrote:
> } Hello. Can anyone help me with the following problem?
> }
> } How do you back up a directory using MacPerl? I'm trying to do the
> } following:
> }   require "..:file.pl"
>
> require "::file.pl";

Specifically, there is more to changing Unix paths into Mac paths than
simply substituting : for / globally.

Also (as I pointed out a month or so back) keep in mind that your script
will not be portable for more reason than the path delimiter. Under Unix
Perl, the current directory is not _necessarily_ the pace where the script
resides.  Therefore .. is not _necessarily_ "one up from the script".  On
Unix. If you decide to port the script.

Or under MPW on a Mac, for that matter.

YMMV -

- V.
-- --
       |\      _,,,---,,_       Vicki Brown <vlb@cfcl.com>
 ZZZzz /,`.-'`'    -.  ;-;;,_   Journeyman Sourceror: Scripts & Philtres
      |,4-  ) )-,_. ,\ (  `'-'  P.O. Box 1269  San Bruno  CA  94066
     '---''(_/--'  `-'\_) http://www.cfcl.com/~vlb  http://www.macperl.com

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