tie $mod,'ModName',{blabla} ; return $mod ; [download]
In reply to returning a tied variable by jeanluca