in reply to Convert TCL script to Perl Script

IMHO this can't be simply done.

AFAIK is TCL a fully interpreted language, whereas Perl has a compilation phase before interpreting the generated op-code.

The differences might seem subtle but can cause severe problems.

Cheers Rolf