in reply to using Tie::Hash CPAN module

That's not the way to use a tied hash at all.

tie my %tied, 'NewHash'; $tied{ num } = 12; print $tied{ num }, "\n";

You need to read the perltie docs.

The cake is a lie.
The cake is a lie.
The cake is a lie.