How to print in a tabular format in tcl?

Viewed 22608

I am trying to print the data in a tabular format in tcl. Suppose I have three arrays:-

GOLD, TEST, DIFF and it has some values in it. I want to get in printed in the following format:-

GOLD           TEST         DIFF
-----------       --------       ---------
     1               Hello            Hi
     2               Stack          Format
     3               Guys           for
     4               TCL            print

Would you guys like to suggest something?

4 Answers
Related