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

[MacPerl-WebCGI] Can't read STDIN [off topic?]



Greetings:

This isn't really a MacPerl specific question, but I use MacPerl to 
develop scripts for my my hobbyist website, 
<http://pianosa.com/Golf/Clubs/pgc>, and I'm much more comfortable 
with Mac users, so here goes ...

Yesterday, the scripts that handle form input on this previously 
functioning website suddenly stopped working.

Trial and error troubleshooting reveals that reading STDIN for form 
input now results in an empty value when called thusly:

	my $buffer;
	read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});

$buffer remains empty, but $ENV{'CONTENT_LENGTH'} holds a positive 
integer, presumably indicating that STDIN holds the form's input.

The param() function of CGI.pm returns the form data, so that also 
makes me think that the form data is lurking somewhere in STDIN, and 
that I've somehow scoped myself out of access to this global.

I've chased this thing around and around for two days, and I am 
completely befuddled.

I hope this rings a bell for someone.

Thanks for any troubleshooting suggestions,

John Echols
defender@pianosa.com

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org