Problems? Is your data what you think it is? | |
PerlMonks |
Re: Tk save variables into a file and loadby zentara (Archbishop) |
on Sep 15, 2018 at 14:06 UTC ( [id://1222429]=note: print w/replies, xml ) | Need Help?? |
Hi, I don't know about your code problem, but as to your original question: I need help in perl Tk to save, load, default or change config variables, whenever i require. How do I approach. One good way is to use Storable. It allows you to write an existing hash to a file, OR read the file back into a hash. Here is some code showing it's basic use. For further info see ztkdb where I use this technique.
I'm not really a human, but I play one on earth. ..... an animated JAPH
In Section
Seekers of Perl Wisdom
|
|