Help for this page

Select Code to Download


  1. or download this
        print "1st run\n" if exists $a{a};
        print "2nd run\n" if exists $a{a}{b}{c};
        print "3rd run\n" if exists $a{a};
    
    # prints 3rd run
    
  2. or download this
    Note that the EXPR can be arbitrarily complicated as long as the
    final operation is a hash or array key lookup or subroutine
    ...
    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.