At 10.57 -0500 1999.01.26, Richard Gordon wrote: >#what OS are we running on? >$osString = GetHostOS; > >#what's the right dir seperator char to use? >$Dir = GetDirSeperatorChar($osString); > >Am I correct in believing that the only point of testing for OS is to use >the results to determine the proper path separators? If a Perl script has to >employ CR under Mac, LF under unix and CR/LF under Win as line endings in >order to run, then it's presumably already been modified to run on the >specific host platform or it wouldn't be running at all, right? I would recommend using the File::Spec modules for all path-separator issues, when possible. No need to duplicate code. And you never need to determine OS for newlines. Use \n for local newlines, and explicit \015 and \012 for network code. -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch