my($h) = $linktext{'xxx'}; # the xxx is the appropriate id for the hash $newcontext->set_text(\@$h); # $newcontext is 'xref' in this case