Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Symbolic Reference in Method Call

by Eily (Hermit)
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-09-20 15:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls