in reply to Re: getting the name of a variable to use as string
in thread getting the name of a variable to use as string

A symbolic reference will not accomplish what he's looking for. The symbolic reference mechanism only accesses package globals. The variable that he's going to wind up accessing dynamically is a lexical.

I agree that the problem "smells wrong" though, and the need should probably be rethought.

  • Comment on Re^2: getting the name of a variable to use as string

Replies are listed 'Best First'.
Re^3: getting the name of a variable to use as string
by sintadil (Pilgrim) on Sep 17, 2004 at 01:39 UTC

    A symbolic reference will not accomplish what he's looking for. The symbolic reference mechanism only accesses package globals. The variable that he's going to wind up accessing dynamically is a lexical.

    sintadil RTFMs. I see. Thanks for the clarification.