On Tue, 12 Mar 1996, andyk wrote: > Is it possible to do something like this: > > $cr = "\n"; > > if ($cr == "\x0D"){ > $platform = "Mac" > }else{ > $platform = "Other" > } > > or is this just a lame idea. > > Thanx... I don't have a Unix box so I cant check myself. That's pretty ugly, though I don't know of any other machines that use CR for end-of-line (PLEASE, PLEASE, no more end-of-line discussions!). Try this instead: if ($^X eq 'MacPerl') ... John Peterson -- University Networking Services -- Brigham Young University Internet: John_Peterson@byu.edu Phone: (801) 378-5007