in reply to Indirect addressing problem

"Straight and narrow" does not go with the solution that you are apparently looking for: eval & symbolic reference.

Replies are listed 'Best First'.
Re^2: Indirect addressing problem
by tel2 (Pilgrim) on Sep 02, 2015 at 05:30 UTC
    Hi parv,
    Do you mean that I:
    - should not be using eval & symbolic references. If so, in what way am I doing that now?
    - should be using eval & symbolic references instead?

    Thanks.
    tel2

       # <= Not working!!! is the part where you tried symbolic references... but the way its written it could only possibly work by using eval

      It is not a good solution, since you could simply use regular reference

      http://perl.plover.com/varvarname.html explains how to do it, whats wrong with it, the code is fundamentally unsafe, like smoking in bed while juggling flaming chainsaws in bed

      Below is what already had been stated in other words; feel free to ignore ...

      "Straight and narrow" solution had already been mentioned.

      My point was that if one reads up on eval function and what, how, why (not) of symbolic reference, then one would|should be able to generate a solution (for "var-var" usage).