print length keys %$hashref; print Dumper $hashref; #### 1 $VAR1 = { 'x/index.yaml' => 0, 'y/index.yaml' => 0, 'z/index.yaml' => 0 };