use CGI; # use the CGI.pm module my $query = CGI->new; # create a CGI object called "$query" # if you actually need all form data in a hash, # do this: my %formdata = $query->Vars; # get all form data in hash "%formdata". # does handle multivalues, although not too well; # see the CGI manual on "multivalue" for more on that topic. my $yip = $query->remote_host; # get the remote hostname or address # my $link = $formdata{link}; # one way of getting the link parameter. my $link = $query->param('link'); # another way of getting the link parameter.