http://www.perlmonks.org?node_id=904243


in reply to "Using a hash as a reference is deprecated" -- Baloney !

Well you are overcompensating! ;)

Either $WAI->getMem()->{'SwapTotal'} or (which nobody mentioned yet)  %{ $WAI->getMem() }{'SwapTotal'} but not both.

Old perl versions allowed to write %hash->{key} but as you see it's deprecated now.

Cheers Rolf