in reply to Re: Indirect addressing problem
in thread Indirect addressing problem

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

Replies are listed 'Best First'.
Re^3: Indirect addressing problem
by Anonymous Monk on Sep 02, 2015 at 06:44 UTC

     # <= 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

Re^3: Indirect addressing problem
by parv (Parson) on Sep 02, 2015 at 10:31 UTC

    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).