Can anybody tell me what syntax I should use for this to work?$xx="custtype"; print "$R::$xx" ; ## but this prints only "custtype"???
You can do exactly what you want, but it is not a good way for CGI applications.
$xx="custtype"; print eval "\$R::$xx"; $erxx = eval "\$R::$xx"; print "R::xx = $errxx\n";
In reply to Re: Variable Substitution within NameSpace
by ccn
in thread Variable Substitution within NameSpace
by yellow_tree_frog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |