http://www.perlmonks.org?node_id=773333


in reply to Re: string to lexical variable
in thread string to lexical variable

No, just eval "\\\$$varname"; but don't.