Normally, you use perlTk syntax, while using *all* features of all requested package (Tix, or any other)
On the other side, looks like tie-ing hashes does not currently fully implemented. Probably because it is rarely needed to do such kind of mapping.
I assume this lacking method you found will be fixed within next version of Tcl module, meanwhile you can enter to Tcl::Var package (within Tcl.pm):
But you'll probably need more hash methods afterwards (FIRSTKEY for example).sub CLEAR { my $obj = shift; die "STORE Usage: objdata @{$obj} $#{$obj}, not 2 or 3 (@_)" unless @{$obj} == 2 || @{$obj} == 3; my ($interp, $varname, $flags) = @$obj; $interp->Eval("array set $varname {}"); }
PS. Also all we keep in mind, that Tcl's array is not an array in Perl's terminology, its a hash.
Best regards,
Courage, the Cowardly Dog
In reply to Re: Tcl::Tk - Tie Hash to Tcl Array and assign hash
by Courage
in thread Tcl::Tk - Tie Hash to Tcl Array and assign hash
by Ardemus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |