in reply to TK "textvariable" not updating with @var but ok with $var

Please wrap *all* code within code tags. As you can see, the block looks good, but the snippets within the opening sentences are indecipherable.

Also, even though this is relatively short, it's best to give your variables reasonable names (especially when asking others to debug your software), so that it's easier on the mind and the eyes to spot issues.

Without yet reading the code, your subject says something... @var is an array, and $var is a scalar which may be an array reference. Again, haven't read the code, but you may be mixing up your own vars here due to naming issues...

Replies are listed 'Best First'.
Re^2: TK "textvariable" not updating with @var but ok with $var
by mark4 (Acolyte) on Jan 27, 2017 at 00:18 UTC
    I have no problem downloading my code above. All the code was wraped in the code tags. Are you still having this problem? (Oh, perhaps you are talking about the code in the text. (That would be "all the code., As you stated. lol :). I can and will fix that. BTW, I am using @var2 and $var1 in the Actual code, So the name space is not the issue.
      It wasn't a question of name space, but an issue of using meaningful variable names, i.e. names that make sense to you and to your reader. The only thing that the name $var tells you is that it is probably a variable, but that was already known.

      If you use a more useful name, such as $counter, $nb_of_customers, $time_left_to_ignition, that helps understanding what's going on in the program.

        I Widdled my program down to a simple example (so I thought) and I just picked names out of the air. In hindsight I should have used foo and fee. The names I picked actually highlighted my 'wrong' thinking that you could treat an array just like a variable. Thanks for all your help in this problem I was having.