in reply to Variable Substitution within NameSpace
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Variable Substitution within NameSpace
by yellow_tree_frog (Initiate) on Aug 04, 2004 at 17:43 UTC |