![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
"Using a hash as a reference is deprecated" -- Baloney !by Anonymous Monk |
on May 11, 2011 at 20:07 UTC ( #904238=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Wait a minute --- what's wrong with these lines ?! These look perfectly fine! $WAI is an object, which I call getMem() which returns a hashref, I then address a piece of the hashref with ->{'MemTotal'} and take that inside the object's converter function kBToMB(). Is this bad ?? What's a better way to achieve the same thing? ----------------------------
Back to
Seekers of Perl Wisdom
|
|