On Wed, 2003-12-17 at 23:25, Andrew Sterling Hanenkamp wrote:

> tie my %hash, 'Tie::HashWrapper', \%wrappee,
>       -inflate_value => sub { thaw(shift) },
>       -deflate_value => sub { freeze(shift) };
> $hash{a}{complicated}[4]{data} = [ 'structure' ];

warning: the above will not autovivify.  $hash{a} will get
a reference to an empty hash stored in it, then the empty hash
will get {complicated} added to it, etc.

DirDB deals with this by hijacking empty hash references and
tieing them too.


-- 
david nicol
                           perl -e 'printf "ah, hot %x.\n", 12648430'

Reply via email to