Help for this page

Select Code to Download


  1. or download this
    if ($reftype eq 'REF' || $reftype eq 'SCALAR') {
          clean($$node);
          $node = undef if !defined($$node);
       } els
    
  2. or download this
    sub clean {
       our $node; local *node = \$_[0];  # Alias
    ...
          $node = undef if !keys(%$node);
       }
    }
    
  3. or download this
    [[[],[],["b"]],"a"]
    [[["b"]],"a"]
    
    [[[],[],[]],"a"]
    ["a"]
    
  4. or download this
                my $n = scalar(keys %$ref);
                if ($n == 0) {
                      return 0;
                }
                return 1;
    
  5. or download this
    return keys(%$ref) ? 1 : 0;
    
  6. or download this
    return keys(%$ref);