Interesting discussion - I've been examining the @INC variable to see which system i'm on...Does anyone have a general method that will work on dos, nt, vms, unix, and the mac, that is independent of perl revision? /russt >In message <Pine.NXT.3.91.960312172305.7717D-100000@kolob> you write: >>On Tue, 12 Mar 1996, andyk wrote: >>> Is it possible to do something like this: >>> >>> $cr = "\n"; >>> >>> if ($cr == "\x0D"){ >>> $platform = "Mac" > >Yes. > >>> or is this just a lame idea. > >Yes :-) > >>Try this instead: >> >>if ($^X eq 'MacPerl') ... > >Or even better, this: > >if ($MacPerl::Version) > >The $^X test fails with the WPW tool. > >Matthias > >----- >Matthias Neeracher <neeri@iis.ee.ethz.ch> http://err.ethz.ch/members/neeri.html > "One fine day in my odd past..." -- Pixies, _Planet of Sound_