Help with Addlink

I wish to use a scrip in order to add a link from a ticket to an
asset. I know the function “Addlink” exists, but I haven’t found in
the perldocs or anywhere else how to use it (even to link a ticket to
a ticket).
If someone has a running scrip or knows the syntax, I would very much
appreciate sharing it with me.
I’m using RT 3.4.5
Thanks a lot,