Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Updating variables in Tk programmesby bobn (Chaplain) |
on Sep 03, 2003 at 10:08 UTC ( [id://288574]=note: print w/replies, xml ) | Need Help?? |
I'm probably going to mess this up, but I think what's happening is: You use \$map_fields[$cnt2] to store the location of (pointer to) the space occupied by $map_fields[$cnt2], but I think that the dereferencing of the array is happening first, so you store a reference to a string which is the value stored at $map_fields[$cnt2]. I think the solution is to initially store references to scalars in @map_fields, then always manipulate them as references, as in:This code seems to do what you want, though I didn't learn the grid placment manager or make a DB to truly try it out. --Bob Niederman, http://bob-n.com All code given here is UNTESTED unless otherwise stated.
In Section
Seekers of Perl Wisdom
|
|