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
In reply to Re: Value of a scalar specified by a second scalar
by Zaxo
in thread Value of a scalar specified by a second scalar
by bangers
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |