in reply to how can print the variable values
Why do you want to stick to symbolic references?
What's the problem using a hash or an array?