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

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



According to Mark F. Murphy:
> At 1:49 PM -0600 10/28/97, Mark Manning/Muniz Eng. wrote:
> >Anyway, I was looking through the latest release of
> >CGI.pm.  (At least I think it is the latest release - I
> >could be wrong.)  And I noticed the following:
> >
> >	.
> >	.
> >	.
> >	elseif( $OSNAME=~/Mac/i){
> >	.
> >	.
> >	.
> >
> >And was wondering (since we just recently went through a
> >whole discussion about the pros and cons of using "=~"
> >versus "eq") if the author could be contacted and asked to
> >change these IF-ELSEIF-ELSE statements to
> 
> 
> Integer comparisons for equal '==' are different than string comparisons
> for equal 'eq' which are different than '=~' which is pattern match!
Errrrr....... eh?  Am I being unclear here?  I never
mentioned or meant "==".

> The only problem I see is if there's an $OSNAME of 'Mach'!
*nod*  Like Lindsay said.  :-)

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