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.
In reply to Re^3: iterating 2 arrays
by GrandFather
in thread iterating 2 arrays
by sunil9009
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |