On 1998-05-18 03:44, L. Brian Matthews <blm@halcyon.com> contributed: >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. Just wondering (getting slightly off topic now): Obviously the DOS version of Perl can handle UNIX style "/" pathnames, whereas the underlying filesystem (DOS) requires the "\" as dir seperator. How come? -- Gerald ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch