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 reply to Re: "Using a hash as a reference is deprecated" -- Baloney !
by LanX
in thread "Using a hash as a reference is deprecated" -- Baloney !
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |