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

Thanks guys, I updated the existing code, its working now. Culprit was, I was using $ref{$k} instead of $ref->{$k} So dumb :-)

Replies are listed 'Best First'.
Re^3: iterating 2 arrays
by kcott (Archbishop) on Nov 29, 2013 at 05:06 UTC

    Please do not just change your OP without indicating (in your OP) what you've changed.

    How to handle this situation is described in "How do I change/delete my post?" (which explains why as well as how).

    Update: While I indicated "OP" above (as that was applicable to this specific case), the information about changing the content of your post applies to any node you write.

    -- Ken

Re^3: iterating 2 arrays
by GrandFather (Saint) on Nov 29, 2013 at 05:23 UTC
    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