in reply to "Using a hash as a reference is deprecated" -- Baloney !
Paraphrasing from from perlop:The left side of the "->" ( infix dereference operator) must be a REFERENCE to ....
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
|
---|
In Section
Seekers of Perl Wisdom