|P is for Practical|
Re: why won't Tk textvariable take a reference to an array element?by serf (Chaplain)
|on Jan 24, 2006 at 18:52 UTC||Need Help??|
As long as you do the:
It will work.
Update: (thanks runrig - see Re: why won't Tk textvariable take a reference to an array element?)
Make that: "is referring to the original instance of $status_label which is destroyed when you define a new array called @status_label by doing: @status_label = ( "abc", "def" );"
The magical thing is more the fact that the ones which use a reference to a scalar can be defined before the scalar has been populated with data.
The references are setting aside the promise that by the time MainLoop comes around to pack the components of the window together there will be some data sitting in the memory locations referred to by \$entry12, \$entry21 & \$entry22 for MainLoop to pick up and use as values.