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
|
---|
In Section
Seekers of Perl Wisdom