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

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.

Ronald

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