in reply to How to refer to a scalar variable dynamically?

It doesn't work because you can't refer to my variables symbolically. That only works with globals. Just no joy there. (And no, for the record it won't be changed for perl 6, not that you've asked :)

Since what you want to do won't work, it's time to look for alternate solutions.

Replies are listed 'Best First'.
Re: Re: How to refer to a scalar variable dynamically?
by shotgunefx (Parson) on Apr 16, 2003 at 20:46 UTC
    But we will have %MY won't we?

    -Lee

    "To be civilized is to deny one's nature."
      Sure, but that still won't make simple symbolic dereferencing work with lexicals...
        No it wouldn't, but wouldn't you be able to accomplish the same thing? Meaning use a variables name to get it's value.

        -Lee

        "To be civilized is to deny one's nature."