in reply to Strange HASH reference BUG! Dual value for a key with sub-key!

Not a bug.

If you use strict or put this at the end of your code you'll get your answer.

print ">> $k1{key2}\n" ;
It is a soft reference.

As a general rule please run your code with 'use strict' and 'use warnings' before you post it here as a question.

grep
Mynd you, mønk bites Kan be pretti nasti...