Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: TK "textvariable" not updating with @var but ok with $var

by Laurent_R (Canon)
on Jan 27, 2017 at 07:28 UTC ( [id://1180438]=note: print w/replies, xml ) Need Help??


in reply to Re^2: TK "textvariable" not updating with @var but ok with $var
in thread TK "textvariable" not updating with @var but ok with $var

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.

  • Comment on Re^3: TK "textvariable" not updating with @var but ok with $var

Replies are listed 'Best First'.
Re^4: TK "textvariable" not updating with @var but ok with $var
by mark4 (Acolyte) on Feb 05, 2017 at 12:33 UTC
    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1180438]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-24 22:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found