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

Re: [MacPerl] $ basepath = "..."



At 13.58 -0500 1999.01.19, David Turley wrote:
>sharon@didit.com wrote:
>
>> I'm not able to find the right directory...
>> I tried with:
>> $basepath = "/MacintoshHD/WebSTAR 3.0/nameofmyfolder"
>> and with
>> $basepath =  "/MacintoshHD/WebSTAR%203.0/nameofmyfolder",
>> with   "%20" instead of the  blankspace  between  "WebSTAR" and "3.0"
>
>The file path separator for Mac Os is a colon ':', not a slash. Also,
>for my money, I avoid any file/directory names with spaces. One of
>Perl's stength's is "cross-platform-ability." Using spaces in file names
>tends to break this.

Yes, but as long as the space is not at the beginning or end of the entire
path, you should be OK.  Unix can handle a space in a filename fine, too.
Worse is putting a slash in the file name.  :)

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch