How do I disable autovivification in Perl?
问题 Suppose you have a HUGE application "develoopped" ;) by a big team. Here is a simplified model of the potential disaster that may occur when somebody checks too deep in a data structure. If not possible to disable autovification completely or in scope, how to work around this? Thank you very much :) !!!! use strict; use warnings;use Data::Dumper; my $some_ref = {akey=>{deeper=>1}}; print Dumper($some_ref ); if($some_ref->{deep}{doot} == 1){ print 'too deep '.$/; } if($some_ref->{deep}){ print