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

Re: [MacPerl] Platform checking



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_