On Dec 30, 2009, at 23:28, Bruce Ferrell wrote:

> I see on the CGI web page that this:
> ===================================
> use CGI;
> 
> $q = new CGI;
> 
> $query = $q->param( 'POSTDATA' );
> ===================================
> 
> 
> will return the contents of this URI:
> 
> http://server/cgi.cgi?POSTDATA=posteddata
> 
> How do I code so that I don't have to use POSTDATA?

It was you who defined the variable name, i.e. POSTDATA. You can change the 
name to something else. 

Or are you trying to get rid of the key value pairs entirely? That 
unfortunately won't work since HTTP is a 'stateless' protocol and if you want 
the remote machine to calculate something with your input you'll have to 
provide input and key value pairs is the way its done.

Jeremiah
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to