in reply to Re: How to dereference when hash key is referenece
in thread How to dereference when hash key is referenece

If in the x part of his question $array_ref is ment to store only integers then this is ok. You have a problem, when an array element contains the $; char and you convert string -> array(ref).
  • Comment on Re^2: How to dereference when hash key is referenece

Replies are listed 'Best First'.
Re^3: How to dereference when hash key is referenece
by GrandFather (Saint) on Apr 27, 2006 at 07:00 UTC

    I doubt very much that the question asked was the real question. To that extent any answer is bogus and refinements, while usefull for teaching in a broader sense, are not actually addressing OP's real problem.

    I consider that the code I posted as an answer to the question asked to be sub-optimum in many ways, but unless we can figure out what OP is trying to do, we probably can't do much better.


    DWIM is Perl's answer to Gödel