According to Peter Prymmer: > > Those two aren't even syntactically equivalent: > > if($^O =~ /mac/i ) {} > Heh. Syntactically or not, if $^O contains "MacOS" then both of the commands will return true. :-) > J. Freidl's B<Mastering Regular Expressions> (which probably ought to be > on your bookshelf :-). I have as of yet to be able to find this. Either the bookstore is out (B. Daltons and The BookStop) or it is on order. Guess I will have to get the ISBN number and order it myself. :-/ The real problem with the contains statement is if Apple decides to do something like OSMac for the OpenStep Mac and MacOS for the normal Mac Operating System. Actually if Apple just decides to put the word "mac" into what is returned for both OS's. It could really muck up a lot of people's programs, I believe. Because I'm sure I'm not the only person out there who has been making their programs look at the OS to determine what kind of separator they will have between subdirectory names. So someone else who uses the if( $^O =~ /mac/i ){ $thePath = "$theDirectory:$theFile"; } will be getting a nasty surprise when Rhapsody in Blue and Yellow comes along. ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch