in reply to Re^2: iterating 2 arrays
in thread iterating 2 arrays

Culprit was, I was using $ref{$k} instead of $ref->{$k}

Nope. Unless there is more context than you are telling us, the culprit is using a hash reference instead of a hash.

References are fine where they are needed, but require needless extra syntax where a simple variable will suffice.

True laziness is hard work