in reply to Re: How can I turn a string into a variable name?
in thread How can I turn a string into a variable name?

Why use eval to do
if do { no strict 'refs'; $$string };

Replies are listed 'Best First'.
Re^3: How can I turn a string into a variable name?
by almut (Canon) on Jan 09, 2010 at 20:21 UTC
    Why use eval

    ...because the OP used lexical variables.  Symbolic references ($$string) only work with package variables.