in reply to Re: Strange behaviour of Tkx in combination with Storable
in thread Strange behaviour of Tkx in combination with Storable

Thanks aitap.

What I forgot to mention explicitely is that Storable crashes when retrieving the references to the Tcl::Var objects.

I could avoid this by copying all parameters to new variables first and store those, but this is rather ugly. Do you see another way to make Storable see the correct data structure?

  • Comment on Re^2: Strange behaviour of Tkx in combination with Storable

Replies are listed 'Best First'.
Re^3: Strange behaviour of Tkx in combination with Storable
by aitap (Curate) on Jan 04, 2014 at 11:51 UTC

    You can make a reference to a stringified copy of your variable on the fly: store \"$Value", $filename, or, if you are storing a data srtucture, store { var => 1, anothervar => "$Value", ... }, $filename.

    Quotes explicitly transform anything into a string, and no object can survive that.