note
perlmonkey
I maybe barking up the wrong tree, but I think I got your error.
It took a bit of rooting around.
Normally if the scalar is just a normal hash it should autovivify.
Here is an autovivification example:
<CODE>my $foo = { };
$foo->{a}->{b}->{c}->{d} = 1;
use Data::Dumper;
print Data::Dumper->Dump([$foo],['foo']);</CODE>
<B>Results:</B><CODE>$foo = {
'a' => {
'b' => {
'c' => {
'd' => 1
}
}
}
};</CODE>
All those keys were undef, but now they were created just
by asking for them.<BR><BR>
I got your error only when I tried to turn an undef into a hash
reference explicitly:<CODE>print %{$foo->{a}->{d}}
</CODE> So maybe making it
into a two step process:<CODE>my $bar = $foo->{a}->{d};
print %$bar if $bar;</CODE> that might take care of your errors.
If I totally missed your problem, sorry.
25633
25676