At 10.13 98.01.23, Mark T. Johns wrote: >Are you sure it returns "MacOS" even under System 7.5 or 7.1? As I recall >"MacOS" didn't become MacOS until System 7.6/8.0/8.1 >Yet again, it may not be checking this at all... at that point you're >absoluty correct. > >And is there a Perl for Mac that runs under 8.x yet? I've even been hard >pressed to find one that works on 7.5! >>See man perlvar >> >> $^O >> $OSNAME >> The name of the operating system under which this >> copy of Perl was built, as determined during the >> configuration process. The value is identical to >> $Config{'osname'}. >> >>if ($^O eq 'MSWin32' ) {&windowsvars } >>elsif ($^O eq 'Macintosh' ) {&macvars } >>else { &unixvars }; >>&commonvars; > >Actually the Mac returns 'MacOS'. Be careful to match for the whole string, >not just /mac/ as you will fall foul when running the script on a Mach >based system! 1.) MacPerl runs fine and the same on System 7.5.3 up through Mac OS 8.1. It should run fine on System 7.5 too, but it is not recommended because of some bug fixes. 7.5.5 is probably best if you have 7.5, since the upgrade is free anyway. 2.) $0 is hardcoded into the MacPerl app as 'MacOS'. This is irrespective of which version of MacPerl you are using. 3.) You should have the latest version of MacPerl, 5.1.9r4. If you have 5.1.6-8r4 you should be fine, though. -- Chris Nandor pudge@pobox.com http://pudge.net/ %PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10 1FF7 7F13 8180 B6B6']) #== MacPerl: Power and Ease ==# #== Publishing Date: Early 1998. http://www.ptf.com/macperl/ ==#