Is there a simple way to bind a textvariable (for a Label say) to an array in such a way as to keep track of changes in the array's size?
e.g. I want to label a ListBox with the number of entries in it. it seems that neither
-textvariable => \@array
nor
-textvariable => \$#array
do the trick.
I'm beginning to think that the most straightfoward solution is to explicitly keep track of the array size in a separate scalar variable and use that as my -textvariable, of course that might lead me to create a silly object that contains an array and a scalar just to keep track of the array size.
Apologies if this question is rudimentary.