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

RE: [MacPerl-Toolbox] Determining a full path to the currentfolder



> -----Original Message-----
> From: Ronald J Kimball [mailto:rjk@linguist.dartmouth.edu]
> Sent: Sunday, September 12, 1999 11:27 PM
> To: Walter Torres
> Cc: macperl-toolbox@macperl.org
> Subject: Re: [MacPerl-Toolbox] Determining a full path to the
> currentfolder
> 
> 
> On Sun, Sep 12, 1999 at 11:17:16PM -0500, Walter Torres wrote:
> > Sure, that works, but so does this...
> > 
> > # Remove the file name from the complete path
> > # Win32, MacOS & UNIX compliant
> > ( $scriptPath = $0 ) =~ s{[^\\\/:]*$}{};
> > 
> > Just my 2 cents
> > 
> 
> That's not compliant on any of those systems.
> 
> \ and / are legal in filenames on the Mac, and : is legal in 
> filenames on Windows and Unix.

mmmm, I didn't think of that.

Well, so much for me showing off! ;)

I guess I'll just keep my pocket change in my pocket.

So, like Rosanna Rosanna Danna used to say...  Never Mind.

Walter


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