'defined' will autovivify, 'exists' will not.
No, Bruce is right. When used with nested structures, both defined()
and exists() will create the hash element "D", and store a reference
to an anonymous array in it.
But don't take my word for it - just ask Perl. Here's a simple test:
Oops, you're right, I'm wrong. Certainly caused a quick discussion,
though, didn't it? :-)
I was thinking of this from the docs: "The element is not
autovivified if it doesn't exist." but obviously forgot about the
creation of intervening elements.
Teach me to reply before reviewing!
Stewart
--
Stewart Leicester | JenSoft Technologies, LLC
"Per Ardua Ad Astra" | <mailto:[EMAIL PROTECTED]>