[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] CGI.PM (Was Recommendations on how to port a MacPerl)



} elsif ($OS=~/Mac/i) {
    $OS = 'MACINTOSH';

Mark, yes, this is wrong because it can improperly identify the OS as MacOS when it contains those three letter anywhere in the string.  The fact that it is a regex is not that important, IMO.  Some would quibble, but I don't care, as long as it works.

Lincoln, could you please change this to:

} elsif ($OS=~/^MacOS$/i) {
    $OS = 'MACINTOSH';

or

} elsif ($OS eq 'MacOS') {
    $OS = 'MACINTOSH';

I am sure Machten users will appreciate it.  :-)

--
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/    ==#



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch