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

Re: [MacPerl] Using UNIX style filenames with MacPerl



At 18.38 +0200 98-05-16, Josh Kuperman wrote:
> I think most MacPerl users simply want to
>be able to  have a standard way to program for Unix Perl on the Mac (and
>perhaps vice versa) without having to embed extra code or flags to check
>which platform the system is running on.

What about a class?

use File::Name;

$fn = new File::Name('../data/file');
open (IN, $fn->path);

where File::Name converts the thing to the right form (by looking at $^O)
when we need it?


___Carl_Johan_Berglund_________________________
   Adverb Information
   carl.johan.berglund@adverb.se
   http://www.adverb.se/



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