in reply to Uninitialised value in string error(was: Debug pukes here.)

Hi.

O.K. I think I see the problem. Can you check for these:
In your HTML form, have you set up the form fields similar to this:
<FORM METHOD=POST ACTION="/Path/To/CGI/app.pl ( or .cgi )> Name: <INPUT TYPE=TEXT NAME="name"> <BR> <INPUT TYPE=SUBMIT VALUE="Click here to send the data!"> </FORM>


Then...in the program that is called by action ( see above ), it should look something like this:

#!/usr/bin/perl -wT use strict; use CGI qw( :standard ); use CGI::Carp qw( fatalsToBrowser ); print "Content-type: text/html\n\n"; my $name = param( "name" ); #This might be the problem. if( $name eq "" ) { &printform(); } else { &results(); } ...the remainder of your code...

/msg me if this doesn't solve the problem o.k?
Hope this helps,
-DK ( "Meow")

Replies are listed 'Best First'.
Re: Debug pukes here.
by alietzow (Initiate) on May 17, 2002 at 14:28 UTC
    Hola, DK. I didn't understand the change of the word 'field' to "name" so my brain could not successfully interpret a parse of your reply. I am not calling this program from an HTML document that creates a form via a call to a cgi or pl script. I'm actually just running the script directly. And, it was discovered that I could not execute the script with the browser because of simple perms setting (chmod 755 fixed it). While I could execute it as user and root at the O/S, and the owner was nobody, the browser could not execute (possibly because the user is in the set "other"?, not UID or GID.). Anyhow, the issue is resolved. Thanks for being kind enough to reply, DK! Andrew L.