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

Re: [MacPerl] Using UNIX style filenames with MacPerl



Carl Johan Berglund writes:
|At 20.43 +0200 98-05-17, Brian "L." Matthews wrote:
|>I find the easiest way to deal with the problem is what someone else
|>suggested--set a variable at the start of the program that contains :
|>under MacPerl and / under Unix or Windows perl, and use it instead of
|>a separator in paths.
|$dlm = $^O eq 'MacOS' ? ':' : $^O =~ /^Win/ ? '\' : '/';

Yeah, like that. :-) Only, the backslash needs to be escaped: '\\',
however, unless Bill has changed something recently, a forward slash
works just as well.

Brian

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