Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^2: Symbolic Reference in Method Call

by Eily (Priest)
on Jun 27, 2013 at 17:17 UTC ( #1041054=note: print w/ replies, xml ) Need Help??

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 :

our $value = "package var"; my $value = "lexical var"; my $ref = "value"; $, = ", "; print ${$ref}, $value, eval "\$$ref";
package var, lexical var, lexical var

You should see there that you can only access dynamix variables with symbolic references, not lexicals.

Comment on Re^2: Symbolic Reference in Method Call
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1041054]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (14)
As of 2016-05-25 09:27 GMT
Find Nodes?
    Voting Booth?