pvhp@forte.com (Peter Prymmer) writes: } }While the following is probably even a worse performer than }C<if( $^O =~ /mac/i ){}> it is nonetheless yet another trick to try: } } if (grep(/\:/,@INC)) { } $thePath = "$theDirectory:$theFile"; } } } Not a good idea, because, of course, : is a legal character in Unix filenames. For example, what if I named my personal Unix Perl directory (not that I do, mind you) "My:Perl:Stuff"? Similarly with grepping for /. }And I haven't even mentioned C<use Config;> and %Config elements like }$Config{'osname'}, $Config{'archname'}, etc. So far as I know, $^O is shorthand for $Config{'osname'}. The only real problem with $^O is, AFAIK, the values aren't documented somewhere. You should be able to find out from somewhere what the value of $^O is on platforms you don't have access to, for purposes of writing portable code. } }Peter Prymmer } } }***** Want to unsubscribe from this list? }***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch --- Paul J. Schinder NASA Goddard Space Flight Center Code 693, Greenbelt, MD 20771 schinder@pjstoaster.pg.md.us ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch