perl has no idea what a hyperlink is nor can it tell one link from another. YOu have to code you links with some paramaters perl can use to know what it should do, with a link that is the query string and name/value pairs, something like:
your script collects the query string and parses it into varaibles. So "age" and "name" are the static part of the equation but the values can change:
<a href="foo.cgi?age=young&name=kevin">click here</a>
Perl comes with the CGI module that is used to make the process fairly painless for the programmer but the learning curve will seem steep if you're a total newbie to CGI scripting.
<a href="foo.cgi?age=old&name=fishmonger">click here</a>