The faq covers three different approaches. The first only works with globals and is not strict compliant. The second works with lexicals or globals and is strict compliant. The third shows how one could accomplish a similiar task using hash keys instead of variable names. I'd recommend either of the last two.
-Blake
| [reply] |
safe as described in the faq
$line =~ s/\$(\w+)/${getValue(\%myVars,\$1);}/sgex;
but how do I get the defined skalars from the required script into my hash? that would be a way that I would prefer
Have a nice day
All decision is left to your taste
| [reply] |