use strict; my $x = 8; my $xr = "x"; my $y = eval "\$$xr"; print $y;
You should see that in the code, eval evaluates the string $x and returns the value of the variable, in this case 8.
Hope that helps ..
-- Foxcub
In reply to Re: scalar ref help?
by Tanalis
in thread scalar ref help?
by jettero
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |