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

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



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!

The only problem I see is if there's an $OSNAME of 'Mach'!

mark

PowerPerl(tm),  mailto:info@powerperl.com   http://www.powerperl.com
       A product of Tyrell Software Corp.   http://www.tyrell.com



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