Syntactic Confectionery Delight | |
PerlMonks |
Re: How to convert an @ARGV to form based input?by ig (Vicar) |
on Aug 21, 2012 at 08:22 UTC ( [id://988638]=note: print w/replies, xml ) | Need Help?? |
You have explained a bit about what you don't want but you haven't said much about what you do want, so I can only guess. Anyway, you seem to be having a problem accessing CGI parameters from your script. Here is one simple way to access a CGI parameter:
If you query this CGI script with a URL like:
You should get something. It is unusual, in my experience, to use unnamed parameters with HTTP requests. Whether using GET or POST, I always name my parameters. Note that this CGI script will work with both GET requests, with parameters in the URL or POST requests with parameters in the body, as commony submitted from HTML forms. Hopefully, this will get you past your block, to see how query parameters can be accessed from within a CGI script. Do read up on CGI and CGI::Carp
In Section
Seekers of Perl Wisdom
|
|