In the while loop before $link is pushed into the array you'd need to add something like:
$link->{some_new_field} = qq|the hyperlink|;
Then you can put <%some_new_field%> in your loop in the template.
$link->{some_new_field} = qq|the hyperlink|;
Then you can put <%some_new_field%> in your loop in the template.