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

[MacPerl] CGI (fwd)



According to Strider:
> if ($category == "None" && $catetext == "") {
> $theReply = <<HT_ML;
> Content-type:	text/html
> 
> <html><head><title>Clarity Connect Classifieds</title></head><body>
> You need to enter information to search for, first.<br>category:
> $category<br>text: $catetext</body></html>
> HT_ML
> 
> print $theReply;
> print "\n";
> exit;
> }

The problem is - ZERO equals ZERO.

In other words - your IF statement should have been:

	if( $category eq "None" && $catetext eq "" ){
	...
	}

I've done this MAAAAANNNNNNYYYYYYYYY times.  :-)

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