mostart wrote:
> I want to dynamically substitute a variables name.
> I know this from PHP where you can have somthing like
> ${$foo}
>
> how can I do this in perl ??
You may want to check The Fine Manual about why it's a bad idea to use
symbolic references and what better options are available: perldoc -q
'variable name'
How can I use a variable as a variable name?
Beginners often think they want to have a variable contain the
name of a variable.
[...]
This works *sometimes*, but it is a very bad idea for two
reasons. [...]
jue
|