Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Variable Substitution within NameSpace

by ccn (Vicar)
on Aug 04, 2004 at 08:06 UTC ( [id://379929]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $xx="custtype";
    print "$R::$xx" ; ## but this prints only "custtype"???
    
  2. or download this
    $xx="custtype";
    print eval "\$R::$xx";
    
    $erxx = eval "\$R::$xx";
    print "R::xx = $errxx\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-26 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found