in reply to Value of a scalar specified by a second scalar
You're talking about symbolic references. The syntax you are looking for is just like that for real references.
Strictures will complain about symrefs and fail to run. As you say, usually a hash is wanted when they are introduced.$c = 'foo'; $want = 'c'; print $$want, $/;
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Value of a scalar specified by a second scalar
by ruzam (Curate) on May 18, 2006 at 03:51 UTC | |
by Zaxo (Archbishop) on May 18, 2006 at 04:08 UTC |