in reply to Passing Variables in CGI

A simple example:
#!/usr/bin/perl -w use CGI qw(:standard); use strict; my $query = new CGI; my $name = $query->param('name'); my $loc = $query->param('loc'); print $query->header("text/plain"); print "$name is from $loc\n";
Now suppose this script is called tst.pl and is located in you /cgi-bin/ directory.

You can call your script like so:
http://www.host.com/cgi-bin/tst.pl?name=Joe&loc=The+Netherlands

A '+' substitutes a space in a query, and name=value pairs are seperated by a &
Be sure your server has executable permissions on your script, so you won't get "500 Server Error." However, if you do encounter errors, it would be wise to start it from the command line. That's real easy to do because you're using CGI.pm:
perl tst.pl name=Joe&loc=The+Netherlands

update: i should reload more often. if this is redundant, sorry.

-- ar0n