better yet, use English; print $OSNAME; is more clear. $0 (as in $zero gives the progame name) $^0 (as in $^Oh not zero gives the OS name). pretty intuitive too bad O and 0 look the same with 9 pt monaco. Todd On Sat, 16 Nov 1996, William Middleton wrote: > > > > >It would be nice if Perl had a portable way to detect the platform that > > >it is running on. Maybe there is a good way and I just don't know it. > > $^O > > On a mac: > > print $^O; > > prints: MacOS > > > Bill > >