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

[MacPerl] how to check for machine architecture?



I want my script to run semi-transparently under unix perl or MacPerl. What
is the preferred way to check on what kind of machine the script is running?
On unix I have $ENV variables to check, but what do I have on the Mac?

I thought about grepping the output of `pwd` for either : or /, but surely
there must be a better way?

TIA


Axel Roest
_____________________________
Axel M. Roest                | AXEL Development & Support
info@axel.nu                 | Macintosh developer & UNIX sysadmin
http://www.axel.nu           | 42

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org