in reply to Re: STDIN ..???
in thread STDIN ..???
Yes this is the solution. The following is a simple demonstration that should be useful to the OP:
#!/usr/bin/perl use strict; use warnings; use CGI; # print a simple content-type which will ensure we're not at # risk of XSS attacks, etc. print "Content-type: text/plain\n\n"; # get the CGI object my $cgi = new CGI; # for each parameter submitted foreach my $param ( $cgi->param() ) { # print the parameter and the value it contained. print $param . " " . $cgi->param( $param ) . "\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: STDIN ..???
by Your Mother (Archbishop) on Jan 03, 2010 at 04:15 UTC |
In Section
Seekers of Perl Wisdom