At 1:13 AM +0200 1999/7/4, Axel M. Roest wrote: >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 built into perl: $^O (or $OSNAME under use English;) returns MacOS on MacOS returns linux on my LinuxPPC R4.1 machine Kevin ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org