I got two lists,
pinlist {A B C ..}
numlist {2 3 5 ..}
now I am trying to list it as table i.e.
pin num
--- ----
A 2
B 3
C 5
..
why does foreach command doesn't work in following way?
set i 1
foreach x [list $pinlist] {
puts stdout [format "%-32s %s \n" [lindex $numlist $i] [lindex $frqlist $i]]
incr i
}
pinlist {A B C ..}
numlist {2 3 5 ..}
now I am trying to list it as table i.e.
pin num
--- ----
A 2
B 3
C 5
..
why does foreach command doesn't work in following way?
set i 1
foreach x [list $pinlist] {
puts stdout [format "%-32s %s \n" [lindex $numlist $i] [lindex $frqlist $i]]
incr i
}