Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: "Using a hash as a reference is deprecated" -- Baloney !

by NetWallah (Canon)
on May 11, 2011 at 20:17 UTC ( #904241=note: print w/replies, xml ) Need Help??


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.

return $WAI->kBToMB( $WAI->getMem()->{MemTotal} );
(No need for quotes inside {} ).

     Syntactic sugar causes cancer of the semicolon.        --Alan Perlis

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://904241]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2022-01-29 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (74 votes). Check out past polls.

    Notices?