in reply to Re: Symbolic Reference in Method Call
in thread Symbolic Reference in Method Call
I agree with kennethk, if you want to use symbolic references, there's a high probability that you are doing it wrong, or do not have a clear idea of what you are trying to do. But, if you know that you are asking for trouble, here is something that might help you :
package var, lexical var, lexical varour $value = "package var"; my $value = "lexical var"; my $ref = "value"; $, = ", "; print ${$ref}, $value, eval "\$$ref";
You should see there that you can only access dynamix variables with symbolic references, not lexicals.
|
|---|