D
Dilbert
In perl 5.12.1, with reference to the exist function "perldoc -f
exist" ( see also http://perldoc.perl.org/functions/exists.html ) it
says
Has this particular case of surprising autovivification always
existed, even in perl 5.10 or 5.8 ?
exist" ( see also http://perldoc.perl.org/functions/exists.html ) it
says
[...]
Although the mostly deeply nested array or hash will
not spring into existence just because its existence
was tested, any intervening ones will. Thus $ref->{"A"}
and $ref->{"A"}->{"B"} will spring into existence due to
the existence test for the $key element above.
[...]
This surprising autovivification in what does not at first
--or even second-- glance appear to be an lvalue context
may be fixed in a future release.
Has this particular case of surprising autovivification always
existed, even in perl 5.10 or 5.8 ?