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

[MacPerl] How do you... solve the pathname problem?



First, please, let's not re-open the discussion of whether MacPerl should
understand Unix-style pathnames by default!  Matthias would be very upset
with me if I were responsible for that while he's a guest here in my little
part of 3D space :-)

But... we all know that Mac OS and Unix differ in how they use pathnames.
How do you solve the problem?  How do you write portable code? (or don't
you try?)

I thought it might be helpful to collect some examples of how different
people solve the pathname problem.  Do you:
   Use a function?
   Define a "$pathseparator" variable?
   Stick all of your file/directory names into variables?
   Use a module?
     which one?
     something from CPAN? or did you write it?

We can have a discussion here if you like.  Or feel free to mail me your
ideas directly, or submit them as fragments to the Code Contributions area
under the MacPerl pages (http://freebie.cfcl.com/macperl/forms/code.html).
Be sure to include permission to post your contribution on the MacPerl
pages (if you don't want to give permission, that's OK, but I admit I'd be
a bit confused by your motives :-)

I'll collect and summarize.

Thanks -

Vicki

-----
 //=\   Vicki Brown  mailto:vlb@incyte.com
 \=//   Journeyman Sourcerer: Scripts & Philtres
  //=\    (Mac)Perl, awk, sed, *sh...
  \=//    Scientific Programmer, JAPH
   //=\     Incyte Pharmaceuticals, Inc.
   \=//     3174 Porter Dr., Palo Alto, CA
    //=\    http://www.incyte.com



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