in reply to Dynamic Hash value

Yes it's possible to automatically propagate any change of your scalars to the hash using Tie::Scalar

But this technique is certainly not appropriate for a beginner.

Cheers Rolf

¹) or Tie::Hash like others mentioned, that depends on if you wanna push or pull the changes.