Ardemus has asked for the wisdom of the Perl Monks concerning the following question:
I get an error when I assign a hash to the tied hash:tie %curRecord, 'Tcl::Var', $tcl, "curRecord";
I am using Tix Widgets, but the error is directly related to the line listed above. If I remove the line the error goes away. This code works (and I'm using it in the mean time):%curRecord = %{SelectedRecords()}; Error: Tix Error: Can't locate object method "CLEAR" via package T +cl::Var" at...
Clearly this isn't a big issue, but I'm curious if anyone knows what's going on. Thanks, Ardemus$temp = SelectedRecords(); foreach (keys %{$temp}){ $curRecord{$_} = $temp->{$_}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tcl::Tk - Tie Hash to Tcl Array and assign hash
by Courage (Parson) on Jan 20, 2005 at 21:15 UTC | |
by Ardemus (Beadle) on Jan 26, 2005 at 18:51 UTC | |
by Courage (Parson) on Jan 27, 2005 at 07:16 UTC |