in reply to Using a varabile contained within another variable?

Here's one way
my $x = 1; my $y = '$x'; eval "$y++"; print $x, "\n"; # Output == 2