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

Re: [MacPerl] Bizarre CGI Problem



On 8/14/97 Strider wrote:

>>We have used MacPerl CGIs for about a year with no problem. Last week one
>>of them suddenly stopped working. There now seems to be problem with the
>>%ENV environment variable:
>>
>>	$x = $ENV{'HTTP_REFERER'};
>
>This is just a bad hunch, but shouldn't that be 'HTTP_REFERRER' ?

I saw that and wondered (the code was written by someone else). It still
doesn't explain why it worked for a few months and then just up and quit.
The error might not have been picked up if MacPerl returns the HTTP headers
instead of undefined or nothing. The failure was actually in a regex that
followed the assignment to HTTP_REFERRER. It could be that the regex worked
on the (erroneous) returned value, but now some change in the headers makes
it fail. In other words, the weird behavior of %ENV may have let the script
run with the misspelled hash key. I'll give it a try this afternoon.

Thanks, RR

__________________________________________________________________________
  Richard Rathe, MD                       mailto:rrathe@dean.med.ufl.edu
  University of Florida                  http://www.med.ufl.edu/medinfo/  



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