Lisa,
Perhaps if you posted a snippet of you perl script we could help you translate it to Tcl. You should be able to do anything you can do in Perl as an a Tcl proc in Inbound TPS in Cloverleaf.
Kevan Riley
Adventist Health System – IS
Lake Mary, FL