I am trying to do some scalar reference work. Here is a simplified version of what I am trying to accomplish. I am currently using perl 5.10.1.
Notes:
*color is dynamically obtained
*trying to get a say 100, or the red value
*I realize this is much easier done with a hash but how can I do it with scalars?
$red = 100;
$blue = 150;
$green = 200;
$color = "red";
say ${$color};
Current error = SCALAR ref while "strict refs"