in reply to Re^2: Contain yourselves please: THEORETICAL question about variable values being used as A PART of another variable's name.
in thread Contain yourselves please: THEORETICAL question about variable values being used as A PART of another variable's name.

Which is one of the reasons we repeatedly state not to use such code.

Dominus says it best.

  • Comment on Re^3: Contain yourselves please: THEORETICAL question about variable values being used as A PART of another variable's name.

Replies are listed 'Best First'.
Re^4: TL;dr - constructing symbolic references
by LanX (Saint) on Dec 15, 2016 at 19:03 UTC
    > Which is one of the reasons

    Not really, there are many reasons, but that's not part of it! :)

    Ikegami's code is just a condensed one liner version of

    $string= "construct variable name"; say $$string;

    not much different from dereferencing syntax.

    On another note: Someone is trying to troll here ATM, better don't feed. :)

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!