in reply to TIEHASH hiccup?
For some reason, putting the eval'd structure in a my'd variable clears up the vivifacation issue. Go figure...sub FETCH { my ($this, $key)=@_; return $this->{'l'}{$key} if exists $this->{'l'}{$key}; my $v=eval($this->{f}{$key}); return $this->{'l'}{$key}=$v; }
|
---|