in reply to Re^3: Printing only the "keys that have a value" in hash
in thread Printing only the "keys that have a value" in hash

#print Dumper( \%Hash_filematches ); -->Shows correct data

But with the below code,the output is shown below

print "PRINTING MATCHED HASHES\n"; foreach my $key ( keys %Hash_filematches ) { delete $Hash_filematches{"$key"} if(!exists($Hash_filematches{"$ke +y"})); my $value = $Hash_filematches{$key}; print "$key => $value\n" ; }

This below is the output.It's still printing the array references as values and also the hash keys without values.

PRINTING MATCHED HASHES array.xml => ARRAY(0x1b26ac8) file.xml => ARRAY(0x1b26af8) data.xml=> ARRAY(0x1b26ae0) multimedia.xml => ARRAY(0x1b26b58 ...... ......