Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my @values = Dive ( \%h, 'key3', 'key4' );
    printf "key3-key4 %s exist\n", @values ? 'does' : 'does not';
    print Dumper( \%h );
    
  2. or download this
    Testing with exists
    key1 does not exist
    ...
    $VAR1 = {
              'key1' => {}
            };