in reply to "Using a hash as a reference is deprecated" -- Baloney !
In your case, you are supplying a HASH (Not a reference).
Just get rid of the %{...} , and you will have a (Hash) reference.
(No need for quotes inside {} ).return $WAI->kBToMB( $WAI->getMem()->{MemTotal} );
Syntactic sugar causes cancer of the semicolon. --Alan Perlis
|
|---|